summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-05 03:59:24 +0000
committerDana Jansens <danakj@orodu.net>2007-04-05 03:59:24 +0000
commit7059cde13b2da3eb3ec07b48fd643de76425fb21 (patch)
treed8958e163fcebf228ab2508115e66d5895c0e107 /openbox/client.c
parent8d7cc2597e51281e171744a750b6981ce74b7ead (diff)
http://mail.gnome.org/archives/wm-spec-list/2006-May/msg00000.html
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.
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 80bc8a39..eb00e6d6 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -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;