re forcing a window manager to accept specific coordinates for a window in article bading apr athene cs tu berlin de bading cs tu berlin de tobias doping bading writes try this after xcreatewindow include x xutil h display display window window xsizehints xsizehints xallocsizehints xsizehints flags usposition ussize or pposition psize xsizehints x xsizehints y xsizehints width xsizehints height xsetwmnormalhints display window xsizehints xfree 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 you are right but please don t do this it makes my brain hurt usposition and ussize should only be set if the user specified the position and size you say tom don t blow a gasket what s the harm some window managers do very different things besides positioning the window when they see usposition rather than pposition tom lastrange toml boulder parcplace com
