mutter/src
Marco Trevisan (Treviño) 17491bae06 monitor-config-manager: Fallback to closed laptop lid configuration
When closing the lid of a laptop, we reconfigure all the monitors in order
to update the CRTCs and (if enabled) the global UI scaling factor.

To do this, we try first to reuse the current configuration for the usable
monitors, but if we have only monitor enabled and this one is on the laptop
lid we just end up creating a new configuration where the primary monitor is
the laptop one (as per find_primary_monitor() in MetaMonitorConfigManager),
but ignoring the user parameters.

In case the user selected a different resolution / scaling compared to the
default one, while the laptop lid is closed we might change the monitors
layout, causing applications to rescale or reposition.

To avoid this, when creating the monitors configuration from the current
current state, in case we have only one monitor available and that one is
the laptop panel, let's just reuse this configuration.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1200


(cherry picked from commit e48516679c)
2020-04-16 16:09:38 +00:00
..
backends monitor-config-manager: Fallback to closed laptop lid configuration 2020-04-16 16:09:38 +00:00
compositor window-actor: Set viewport when blitting to screencast fb 2020-04-03 16:30:26 +00:00
core window: Check aliveness a bit less aggressively 2020-04-07 13:23:21 +00:00
meta Add MetaGravity and replace X11 equivalent with it 2020-02-29 21:01:50 +00:00
tests tests/monitor-unit-tests: Test non-hw-transform rotated tiled monitors 2020-04-15 17:53:50 +02:00
ui frame: Pass the frame area for get_mask() 2020-01-29 10:44:50 +00:00
wayland wayland: preserve xkb_state on VT switch 2020-04-08 14:04:02 +00:00
x11 cogl: Install cogl-trace.h and include from cogl.h 2020-03-26 09:05:38 +01:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build backends: Add MetaInputDevice derivable class 2020-03-24 18:07:31 +00:00
meta-marshal.list cursor-tracker: Use our own marshal for cursor-moved 2019-07-31 09:34:17 +00:00
org.freedesktop.login1.xml MetaLauncher: Don't g_error() on failure 2015-11-06 17:03:59 -05:00
org.gnome.Mutter.DisplayConfig.xml fixed typo 2018-07-24 13:16:36 +00:00
org.gnome.Mutter.IdleMonitor.xml idle-monitor: Add ResetIdletime API, for testing purposes 2018-04-16 13:28:03 +02:00
org.gnome.Mutter.RemoteDesktop.xml Fix typo in RemoteDesktop dbus api 2019-05-22 16:21:57 +02:00
org.gnome.Mutter.ScreenCast.xml screen-cast-session: Add 'disable-animations' property 2020-02-20 10:40:42 +00:00