[Xcb] how to get window dimensions?

Cosmin Apreutesei cosmin.apreutesei at gmail.com
Fri Jul 3 15:24:31 PDT 2015


Hi Sam, thanks for answering.

> xcb_ewmh_get_frame_extents().
>
> This gives you the size of each window manager border's decorations. From
> that, you can compute the rest.

That sends _NET_FRAME_EXTENTS right? Ok, so I have to get the client
rectangle, convert it to screen coordinates and add the frame extents
around it. Now how do I get the client rectangle? xcb_get_geometry()
doesn't track resizing. Should I track it myself via
XCB_RESIZE_REQUEST and XCB_CONFIGURE_NOTIFY (the latter btw is only
triggered on move and not on resize - what gives?)


More information about the Xcb mailing list