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
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
.gitignore
autogen.sh
configure.ac Bump version to 3.28.4 2019-05-14 14:25:51 +00:00
COPYING
Makefile.am Fix the merged build 2016-04-27 20:37:47 +02:00
mutter.doap
NEWS Bump version to 3.28.4 2019-05-14 14:25:51 +00:00