Go to file
Marco Trevisan (Treviño) 079a625eaa 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-05-05 22:19:27 +02:00
clutter clutter/x11: Implement keycode remap to keysyms on virtual key devices 2019-05-03 11:15:06 -05:00
cogl cogl/pipeline: Don't try to access to free'd pointer data 2019-05-27 22:40:53 +00:00
data data: Don't expose window shading shortcut 2018-01-24 19:09:27 +01:00
doc Remove gtk-doc 2015-07-06 00:52:18 -07:00
po Updated Slovenian translation 2018-04-10 17:58:12 +02:00
src monitor-config-manager: Fallback to closed laptop lid configuration 2020-05-05 22:19:27 +02:00
tools Clean up the source tree 2014-03-18 20:37:35 -04:00
.gitignore wayland: Add support for stable xdg-shell 2018-02-23 18:57:53 +08:00
autogen.sh Fix bashism in autogen.sh 2017-05-11 13:45:44 +02:00
configure.ac Bump version to 3.28.4 2019-05-14 14:25:51 +00:00
COPYING Updated obsolete FSF postal address in COPYING 2014-01-13 11:35:48 -05:00
Makefile.am Fix the merged build 2016-04-27 20:37:47 +02:00
mutter.doap doap: add <programming-language> 2014-07-31 17:50:28 +02:00
NEWS Bump version to 3.28.4 2019-05-14 14:25:51 +00:00