mutter/src
Jonas Ådahl 81b28a1d97 kms: Notify about privacy screen changes via predictions
When we change the privacy screen, we added a result listener to the KMS
update object to notify the upper layer about the privacy screen state
change. This was slightly awkward as one might have changed the state
multiple times for a single update, thus it was necessary to remove any
old result listeners to an update before adding a new one.

Doing this will not be possible when updates are fully async and managed
by the KMS impl device.

To handle this, instead make the post-commit prediction notify about
changes that happens in response to a successfully committed update. We
already predicted the new privacy screen state, so the necessary change
was to plumb the actual change into a callback which emits the signal if
there actually was a privacy screen change.

This will then be communicated via the same signal listener that already
listens to the 'resources-changed' signal.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2340>
2022-07-25 11:02:35 +00:00
..
backends kms: Notify about privacy screen changes via predictions 2022-07-25 11:02:35 +00:00
compositor window-actor/wayland: Skip unnecessary set_child_at_index() calls 2022-07-11 17:23:10 +00:00
core window: Close window when unsetting transient_for 2022-07-08 21:00:13 +00:00
meta backends: Move MetaKeyboardA11yFlags to a public header 2022-06-14 18:04:05 +02:00
tests tests/stage-view: Give outer container an explicit size 2022-07-06 18:57:12 +00:00
ui window: Move icon management to X11 implementation 2022-02-07 17:52:05 +00:00
wayland wayland/surface: The same sub-surface is not a valid sibling 2022-07-21 17:03:12 +02:00
x11 x11: Let X11 connection owners call XSynchronize() themselves 2022-06-03 13:43:26 +00:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build tests: Add basic X11 WM test 2022-06-02 17:19:42 +00:00
meta-private-enum-types.c.in core: Drop "volatile" from static GTypes in manual registration 2021-03-22 10:47:51 +00:00
meta-private-enum-types.h.in screen-cast: Add screen cast flag to streams 2020-07-30 09:51:16 +02:00