In-reply-to » X11’s WM_NORMAL_HINTS property is a property that can be set on a window. Part of that property is width_inc and height_inc. They tell the window manager to only increase/decrease a window’s size by certain steps.

I don’t know why or how, but using gtk_window_set_geometry_hints() has the desired effect (now?). Reading GTK’s source code is too convoluted to find out what’s going on here. I can’t find a corresponding Wayland protocol.

Sway gets very slow when resizing such a window, so I’m a bit inclined to think that GTK does some weird trickery to get this to work. 🤔

Either way, xiate now sets geometry hints again and floating windows have the correct size now. Finally.

⤋ Read More