mutter/src
Marco Trevisan (Treviño) e48516679c 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
2020-04-16 15:14:03 +00:00
..
backends monitor-config-manager: Fallback to closed laptop lid configuration 2020-04-16 15:14:03 +00:00
compositor compositor: Add support for direct scanout of Wayland surfaces 2020-04-16 15:05:52 +02:00
core compositor: Add support for direct scanout of Wayland surfaces 2020-04-16 15:05:52 +02:00
meta later: Make MetaCompositor the owner of the MetaLaters state 2020-04-16 15:05:52 +02:00
tests tests/monitor-unit-tests: Test non-hw-transform rotated tiled monitors 2020-04-15 15:29:55 +00:00
ui window/x11: Use G_DECLARE_DERIVABLE_TYPE() 2020-04-16 14:08:19 +02:00
wayland wayland: Add API to acquire a CoglScanout from a surface 2020-04-16 15:05:52 +02:00
x11 surface-actor-x11: Move window related unredirect logic to MetaWindowX11 2020-04-16 14:08:19 +02:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build compositor: Add support for direct scanout of Wayland surfaces 2020-04-16 15:05:52 +02: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