Marco Trevisan (Treviño) 4fe7569567 orientation-manager: Use an idle to apply monitor orientation changes
In X11 when we switch to another tty all the the signals are blocked (as
the display fd is not replying back to polling, causing the main loop to
stop), and they are all handled once we switch back to the tty.

This is not a problem for most of external events, but in case of
accelerometer changes, once we reactivate a mutter session we'll get
them all together, causing lots of monitor reconfigurations leading to
black screen for some seconds and most of the times to a wrong
configuration being applied.

To avoid this, batch all these events using an idle to only apply the
last one we got in a loop.

Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1217
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1233>
2021-09-04 10:04:01 +02:00
..
2018-11-06 17:17:36 +01:00
2014-09-12 11:55:08 -06:00
2021-02-22 13:52:27 +01:00
2019-10-21 14:04:30 +00:00
2021-07-07 21:03:26 +02:00
2021-07-07 21:03:26 +02:00
2019-01-22 18:31:53 +01:00
2019-01-22 18:31:53 +01:00
2021-08-22 16:40:42 +00:00
2021-08-22 16:40:42 +00:00
2021-03-12 15:09:45 +00:00
2021-02-22 13:52:27 +01:00