notify_notification_close() expects that a parameter will be available for
the error location, which could be a dangling pointer in a register or
on the stack in the case of some architectures.
This was caught by GNOME/glib#1425 which allows us to check proper type
parameters.
csd-power-manager.c: Lock the screensaver if demanded by settings
prior to turning off the monitor and initiating suspend.
Previously, the screen was only locked during a lid-switch event
after monitors were turned off and only at the last moment prior
to removing the suspend inhibit fd.
But csd handles suspend on laptop lid close events, as well as key
shortcuts for power and suspend actions.
Fix a few GSetting leaks I found along the way.
Fixes #214
f7c2455...
by
Clement Lefebvre <email address hidden>
3.8.4
8f52de6...
by
Clement Lefebvre <email address hidden>
Power: Reconfigure idle timers when upower state changes
The idle timer is configured in idle_configure() based on whether the laptop
is on battery or not. When the laptop power source changes, we need to call
idle_configure() again, so that the timer gets reset with the right
settings.