re forcing a window manager to accept specific coordinates for a window 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 greetings from berlin tobias bading cs tu berlin de
