re forcing a window manager to accept specific coordinates for a window in article r l g bub wsinfo win tue nl rcb wsinfo win tue nl richard verhoeven writes bading cs tu berlin de tobias doping bading writes try this after xcreatewindow xsizehints flags usposition ussize or pposition psize xsetwmnormalhints display window xsizehints these hints tell the window manager that the position and size of the window are specified by the users and that the window manager should accept these values if you use xsizehints flags pposition psize this tells the window manager that the values are prefered values of the program not the user i don t know a window manager that doesn t place the window like you prefer if you specify the position and size like above sorry but olwm and tvtwm don t do it they place the title at that position and the window at a position below it the reason they place their outside corner at the location you requested is because that s what the icccm says they should do this becomes a problem when you want a program to be able to save its current configuration and restore is later currently my solution is xcreatewindow xsetwmproperties xmapwindow xflush xmovewindow this code will almost certainly break calling xmapwindow and then xflush does not guarantee that the window is visible and managed by the window manager even if this did work there isn t a reliable way to find out how much decoration the window manager placed around your window so you don t know how far to move it and what if the window manager refuses to move your window tom lastrange toml boulder parcplace com
