mutter/src/backends
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
..
native cursor-renderer-native: Take CRTC transform into account 2020-04-15 17:53:50 +02:00
x11 backends/x11: Fix access to WacomDevice 2020-04-07 17:48:09 +00:00
edid-parse.c
edid.h
gsm-inhibitor-flag.h
meta-backend-private.h backends: Add MetaInputDevice derivable class 2020-03-24 18:07:31 +00:00
meta-backend-types.h
meta-backend.c backends: Add MetaInputDevice derivable class 2020-03-24 18:07:31 +00:00
meta-barrier-private.h
meta-barrier.c
meta-crtc.c crtc: Don't leak MetaCrtcConfig 2020-02-27 20:35:07 +00:00
meta-crtc.h crtc: Move logical monitor pointer to MetaMonitor 2020-02-25 18:39:51 +01:00
meta-cursor-renderer.c
meta-cursor-renderer.h
meta-cursor-sprite-xcursor.c cursor-sprite-xcursor: Emulate Wayland hotspot limitations 2020-03-26 08:47:37 +00:00
meta-cursor-sprite-xcursor.h
meta-cursor-tracker-private.h
meta-cursor-tracker.c backends: Replace ClutterDeviceManager usage in favor of ClutterSeat 2020-01-30 18:11:23 +01:00
meta-cursor.c cursor-sprite: Add API to get dimension 2020-03-26 16:18:28 +00:00
meta-cursor.h cursor-sprite: Add API to get dimension 2020-03-26 16:18:28 +00:00
meta-dbus-session-watcher.c
meta-dbus-session-watcher.h
meta-display-config-shared.h
meta-dnd-private.h
meta-egl-ext.h
meta-egl.c
meta-egl.h
meta-gles3-table.h
meta-gles3.c
meta-gles3.h
meta-gpu.c
meta-gpu.h
meta-idle-monitor-dbus.c backends: Drop per-device idle monitors 2020-02-12 22:07:55 +00:00
meta-idle-monitor-dbus.h
meta-idle-monitor-private.h backends: Do not use device IDs on idle monitors 2020-01-30 18:11:23 +01:00
meta-idle-monitor.c backends: Drop meta_idle_monitor_get_for_device() 2020-02-12 22:07:55 +00:00
meta-input-device-private.h backends: Add MetaInputDevice derivable class 2020-03-24 18:07:31 +00:00
meta-input-device.c backends: Add MetaInputDevice derivable class 2020-03-24 18:07:31 +00:00
meta-input-mapper-private.h backends: Check both input settings and mapper for tablet monitors 2020-03-25 19:09:32 +00:00
meta-input-mapper.c backends: Check both input settings and mapper for tablet monitors 2020-03-25 19:09:32 +00:00
meta-input-settings-private.h backends: Drop internal WacomDevice in MetaInputSettings 2020-03-24 18:07:31 +00:00
meta-input-settings.c input-settings: fix device list iteration 2020-04-12 23:43:01 +02:00
meta-logical-monitor.c crtc: Move logical monitor pointer to MetaMonitor 2020-02-25 18:39:51 +01:00
meta-logical-monitor.h logical-monitor: Pass monitor in the for each CRTC helper callback 2020-02-25 18:39:51 +01:00
meta-monitor-config-manager.c monitor-config-manager: Fallback to closed laptop lid configuration 2020-04-16 16:09:38 +00:00
meta-monitor-config-manager.h
meta-monitor-config-migration.c
meta-monitor-config-migration.h
meta-monitor-config-store.c
meta-monitor-config-store.h
meta-monitor-manager-dummy.c monitor-manager: Remove 'mirror' capability 2020-03-18 00:46:20 +00:00
meta-monitor-manager-dummy.h
meta-monitor-manager-private.h monitor-manager: Remove 'mirror' capability 2020-03-18 00:46:20 +00:00
meta-monitor-manager.c monitor-manager: Remove 'mirror' capability 2020-03-18 00:46:20 +00:00
meta-monitor-transform.c monitor-transform: Add API to transform point 2020-03-26 16:18:28 +00:00
meta-monitor-transform.h monitor-transform: Add API to transform point 2020-03-26 16:18:28 +00:00
meta-monitor.c monitor: Fix tile coordinate calculation 2020-04-15 17:53:50 +02:00
meta-monitor.h crtc: Move logical monitor pointer to MetaMonitor 2020-02-25 18:39:51 +01:00
meta-orientation-manager.c orientation-manager: Do not change current orientation when locked 2020-02-07 13:46:45 +01:00
meta-orientation-manager.h
meta-output.c monitor: Move logical <-> CRTC transform helpers to MetaOutput 2020-02-27 09:47:22 +01:00
meta-output.h monitor: Move logical <-> CRTC transform helpers to MetaOutput 2020-02-27 09:47:22 +01:00
meta-pointer-constraint.c
meta-pointer-constraint.h
meta-profiler.c cogl: Install cogl-trace.h and include from cogl.h 2020-03-26 09:05:38 +01:00
meta-profiler.h
meta-remote-access-controller-private.h remote-access-handle: Expose disable-animations property 2020-02-20 10:40:42 +00:00
meta-remote-access-controller.c remote-access-handle: Expose disable-animations property 2020-02-20 10:40:42 +00:00
meta-remote-desktop-session.c
meta-remote-desktop-session.h
meta-remote-desktop.c
meta-remote-desktop.h
meta-renderer-view.c renderer-native: Draw stage separately per CRTC 2020-02-25 18:39:51 +01:00
meta-renderer-view.h renderer-native: Draw stage separately per CRTC 2020-02-25 18:39:51 +01:00
meta-renderer.c renderer-native: Draw stage separately per CRTC 2020-02-25 18:39:51 +01:00
meta-renderer.h renderer-native: Draw stage separately per CRTC 2020-02-25 18:39:51 +01:00
meta-screen-cast-monitor-stream-src.c monitor-stream-src: Use cogl_framebuffer_finish() 2020-02-28 15:52:19 -03:00
meta-screen-cast-monitor-stream-src.h
meta-screen-cast-monitor-stream.c
meta-screen-cast-monitor-stream.h
meta-screen-cast-session.c remote-access-handle: Expose disable-animations property 2020-02-20 10:40:42 +00:00
meta-screen-cast-session.h screen-cast-session: Add 'disable-animations' property 2020-02-20 10:40:42 +00:00
meta-screen-cast-stream-src.c screen-cast-stream-src: Don't leak GSource 2020-03-09 17:31:23 +00:00
meta-screen-cast-stream-src.h screen-cast-stream-src: Support DMA buffer sharing 2020-02-28 15:29:03 -03:00
meta-screen-cast-stream.c
meta-screen-cast-stream.h
meta-screen-cast-window-stream-src.c window-stream-src: Finish framebuffer after blitting 2020-03-27 23:29:58 +00:00
meta-screen-cast-window-stream-src.h
meta-screen-cast-window-stream.c
meta-screen-cast-window-stream.h
meta-screen-cast-window.c window-stream-source: Draw into DMA buffer image 2020-02-28 15:52:19 -03:00
meta-screen-cast-window.h window-stream-source: Draw into DMA buffer image 2020-02-28 15:52:19 -03:00
meta-screen-cast.c screen-cast-session: Add 'disable-animations' property 2020-02-20 10:40:42 +00:00
meta-screen-cast.h
meta-settings-private.h
meta-settings.c settings: Improve logging of enabled experimental features 2020-02-17 17:08:21 +00:00
meta-stage-private.h
meta-stage.c clutter/stage: Pass redraw clip instead of extents when painting view 2020-02-25 19:18:54 +01:00