Send ConfigureNotify events when a window is mapped at the position it has specified. When we add decorations, the window gets moved in reference to the root window, so it needs to be told.
This commit is contained in:
parent
8d7cc2597e
commit
7059cde13b
1 changed files with 6 additions and 2 deletions
|
@ -2134,8 +2134,12 @@ static void client_apply_startup_state(ObClient *self, gint x, gint y)
|
|||
pos = TRUE;
|
||||
}
|
||||
|
||||
/* if the client didn't get positioned yet, then do so now */
|
||||
if (!pos && (ox != x || oy != y)) {
|
||||
/* if the client didn't get positioned yet, then do so now
|
||||
call client_move even if the window is not being moved anywhere, because
|
||||
when we reparent it and decorate it, it is getting moved and we need to
|
||||
be telling it so with a ConfigureNotify event.
|
||||
*/
|
||||
if (!pos) {
|
||||
/* use the saved position */
|
||||
self->area.x = ox;
|
||||
self->area.y = oy;
|
||||
|
|
Loading…
Reference in a new issue