mirror of
https://github.com/brl/mutter.git
synced 2025-07-04 10:05:31 +00:00
core/window: Don't set a preferred output when there is none
If there are no active logical monitors, don't try to dereference a NULL one to get a preferred output winsys id. Instead just set an invalid one. https://bugzilla.gnome.org/show_bug.cgi?id=730551
This commit is contained in:
@ -1039,7 +1039,10 @@ _meta_window_shared_new (MetaDisplay *display,
|
||||
window->compositor_private = NULL;
|
||||
|
||||
window->monitor = meta_window_calculate_main_logical_monitor (window);
|
||||
if (window->monitor)
|
||||
window->preferred_output_winsys_id = window->monitor->winsys_id;
|
||||
else
|
||||
window->preferred_output_winsys_id = UINT_MAX;
|
||||
|
||||
window->tile_match = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user