Go to file
Daniel Drake b7bc8e56b7 monitor-manager: use MonitorsConfig to track switch_config
When constructing MetaMonitorsConfig objects, store which type
of switch_config they are for (or UNKNOWN if it is not such
type of config).

Stop unconditionally setting current_switch_config to UNKNOWN when
handling monitors changed events. Instead, set it to the switch_config
type stored in the MonitorsConfig in the codepath that updates logical
state. In addition to being called in the hotplug case along the same
code flow that generates monitors changed events, this is also called
in the coldplug case where a secondary monitor was connected before
mutter was started.

When creating the default linear display config, create it as a
switch_config so that internal state gets updated to represent
linear mode when this config is used.

The previous behaviour of unconditionally resetting current_switch_config
to UNKNOWN was breaking the internal state machine for display config
switching, causing misbehaviour in gnome-shell's switchMonitor UI when
using display switch hotkeys. The lack of internal tracking when the
displays are already in the default "Join Displays" linear mode was
then causing the first display switch hotkey press to do nothing
(it would attempt to select "Join Displays" mode, but that was already
active).

Fixes: https://gitlab.gnome.org/GNOME/mutter/issues/281
https://gitlab.gnome.org/GNOME/mutter/merge_requests/213


(cherry picked from commit 6267732bec)
2019-07-08 17:37:10 +00: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-manager: use MonitorsConfig to track switch_config 2019-07-08 17:37:10 +00: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