Skip to content

Add a request to retrieve the extents of server-side window frames

Positioning and aligning adjacent toplevel windows with server-side decorations would result in windows overlapping due to the compositor applying a frame around the window, which needs to be accounted for by clients when positioning a window.

This adds a request to retrieve the extents of the server-side frame, so that they may be taken into consideration when positioning server decorated windows relative to one another.

This request/event is essentially equivalent to _NET_FRAME_EXTENTS on X11.

I've tested this by adding support to the kwin-zones plugin and the experimental SDL implementation, and it seems to work well and properly fixes the window alignment issues in the Dear ImGui test case, which mixes CSD and SSD windows.

Merge request reports

Loading