mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 15:37:00 -05:00
monitor-config-manager: Use match rule to check laptop panel visibility
Use the MONITOR_MATCH_VISIBLE match rule instead of doing the same check when initializing the list of disabled monitor specs. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/522>
This commit is contained in:
parent
e59da5ad83
commit
37e154c832
@ -1534,8 +1534,8 @@ meta_monitors_config_new (MetaMonitorManager *monitor_manager,
|
||||
MetaMonitor *monitor = l->data;
|
||||
MetaMonitorSpec *monitor_spec;
|
||||
|
||||
if (is_lid_closed (monitor_manager) &&
|
||||
meta_monitor_is_laptop_panel (monitor))
|
||||
if (!monitor_matches_rule (monitor, monitor_manager,
|
||||
MONITOR_MATCH_VISIBLE))
|
||||
continue;
|
||||
|
||||
monitor_spec = meta_monitor_get_spec (monitor);
|
||||
|
Loading…
Reference in New Issue
Block a user