Skip to content

gdk/x11: Clamp window size both when creating and resizing

Jonas Ådahl requested to merge jadahl/gtk:wip/clamp-x11-on-resize-too into gtk-3-24

We clamp to 32767 when creating a new X11 GdkWindow due to larger sizes not being supported, but still try to resize to larger when gdk_window_resize() is called. Fix this by clamping in both places.

This fixes an issue in mutter where ridiculously sized Java windows would not show up.

Merge request reports