mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05: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:
parent
0aa7405a2a
commit
7562eb6006
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user