Reputation: 212
I have a question regarding xcb windows. I am creating a xcb window using position and size. I get the following log messages, based on my implementation:
create: x:560 y:300 width:800 height:600
map window:
XCB_CONFIGURE_NOTIFY: x:560 y:300 width:800 height:600
XCB_CONFIGURE_NOTIFY: x:90 y:77 width:800 height:600
XCB_CONFIGURE_NOTIFY: x:90 y:77 width:800 height:600
What I did
there are three configure notify events. the x/y position is relative to the parent window (parent is set to screen root and there is no reparent message because its a borderless window). I do a xcb_translate_coordinates using window and root as parent. Why is the window moved to a different location?
Upvotes: 0
Views: 325
Reputation: 1
I think it's because the window manager you're using stores the last position of the window before closing it and reestablish it when the application is re-launched and mapped onto the screen.
Upvotes: 0