1
0
Fork 0

Don't attempt to get monitor geometry on non-existent monitors

https://bugzilla.gnome.org/show_bug.cgi?id=788834
This commit is contained in:
Jeremy Nickurak 2018-01-11 11:31:42 -07:00 committed by Marco Trevisan (Treviño)
parent cc40a885ef
commit 6dcce19932

View file

@ -2094,6 +2094,8 @@ meta_window_move_resize_request (MetaWindow *window,
rect.width = width;
rect.height = height;
if (window->monitor)
{
meta_screen_get_monitor_geometry (window->screen, window->monitor->number, &monitor_rect);
/* Workaround braindead legacy apps that don't know how to
@ -2119,6 +2121,7 @@ meta_window_move_resize_request (MetaWindow *window,
window->desc);
meta_window_make_fullscreen_internal (window);
}
}
adjust_for_gravity (window, TRUE, gravity, &rect);
meta_window_client_rect_to_frame_rect (window, &rect, &rect);