monitor-manager/x11: Ignore errors when creating tiled monitors
The error is most likely a race where the tiled outputs disappeared before we had the chance to turn them into a whole monitor. Ignoring the error should be harmless, as we should be receive another RANDR event where we'd eventually fix things up. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7120 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3335>
This commit is contained in:
parent
5780c10002
commit
8d3696f39a
@ -770,9 +770,11 @@ meta_monitor_manager_xrandr_tiled_monitor_added (MetaMonitorManager *manager,
|
||||
xrandr_monitor_info->outputs[i] = meta_output_get_id (output);
|
||||
}
|
||||
|
||||
mtk_x11_error_trap_push (manager_xrandr->xdisplay);
|
||||
XRRSetMonitor (manager_xrandr->xdisplay,
|
||||
DefaultRootWindow (manager_xrandr->xdisplay),
|
||||
xrandr_monitor_info);
|
||||
mtk_x11_error_trap_pop (manager_xrandr->xdisplay);
|
||||
XRRFreeMonitors (xrandr_monitor_info);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user