[Xcb] Window Positioning

Josh Triplett josh at joshtriplett.org
Thu Aug 20 21:46:21 PDT 2009

On Fri, Aug 21, 2009 at 11:41:38AM +1000, Matthew Allen wrote:
> A quick question...
> I would like to center my dialogs on the screen... by default the WM puts them in the top left corner. Whats the "proper" way to do that?
> (I know, it's not really a direct XCB question, but I'll be implementing something using the XCB layer, so it's kinda related)

At a minimum, make sure you mark your dialog as WM_TRANSIENT_FOR your
main window.  You also want to take a look at some of the other hints
you can set, such as _NET_WM_WINDOW_TYPE.

- Josh Triplett

More information about the Xcb mailing list