Merge branch 'fishbowl-crash' into 'master'

Fishbowl crash

Closes #2996 and #3003

See merge request GNOME/gtk!2352
This commit is contained in:
Matthias Clasen 2020-08-03 02:19:01 +00:00
commit c211fdcf42

View File

@ -265,6 +265,9 @@ gdk_surface_get_layout_monitor (GdkSurface *surface,
&root_rect.x,
&root_rect.y);
root_rect.width = MAX (1, root_rect.width);
root_rect.height = MAX (1, root_rect.height);
display = get_display_for_surface (surface, surface->transient_for);
return get_monitor_for_rect (display, &root_rect, get_bounds);
}