Skip to content

gtkapplication-dbus: Initialise screensaver-active property

Alice Mikhaylenko requested to merge wip/exalm/screensaver into gtk-3-24

Looks like !1091 (merged) was only submitted for GTK 4, but not 3, and instead it was in Purism's downstream fork the whole time.


When GtkApplication starts listening to the screensaver's D-Bus status, the screensaver-active property is not initialised and applications making use of the property are out of sync until the first state change. Any application starting when the screensaver is active will think it's inactive.

To fix this, we set the property when we first start monitoring the screensaver.

See !1091 (merged)

Merge request reports