GIO's GFileMonitor already delays directory monitor notifications, so
directory-level changes will already be coalesced even if there's a
lot of changes happening.
Monitoring files (which happens for the XML config files) are signalled
immediately now.
power: Save last requested idle mode while temporarily unidle
If one of our idle watches triggers while we're temporarily unidle we
should save and switch to it when that period ends otherwise we would
ignore any idle request transitions in that period and always go back
to the state where we were when becoming temporarily unidle.
This prevents the following bug:
1. Laptop enters sleep
2. Lid open, wake up, idle time gets reset, we enter NORMAL state
3. There's a notification so gnome-shell asks us to go temporarily
unidle while we're in NORMAL state
4. The 15s inactivity watch is triggered and we switch to BLANK
5. The unidle timer is triggered and we switch back to NORMAL since
that's the state we were in when it started
Result is that the screen is left turned ON indefinitely after waking
from sleep if there's a notification when we wake up.
Change fontconfig timeout from 2 seconds to 200 milliseconds. This should
make font installations to be propagated to applications faster.
Originally I made this quite delayed, to make sure it doesn't fire too
much when people are installing packages, etc, but after many years, I think
that was a very bad choice.
Currently, it takes 4 seconds from when I "mv font.ttf ~/.fonts/" until
apps like gedit switching to it. Hopefully this change saves about
2.3 seconds of that (on average 0.5s was added by g_timeout_add_seconds()).
On sane hardware it is mainly unneeded, and the UI on g-c-c is
discoverable enough for the cases where it isn't, so let's avoid
nagging about something mostly superfluous.
Touchpad buttons are disabled also if touchpad is disabled using
"Device Enabled" property. Unfortunately some touchpads share those
buttons with trackpoint, which is consequently unusable. Disable
touchpad using "Synaptics Off" property instead to avoid disabling
the buttons.
Remove also some redundant calls to enable/disable touchpad and
make sure syndaemon isn't running if the touchpads are disabled.