summaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorAxel Davy <axel.davy@ens.fr>2014-01-12 15:06:04 +0100
committerKristian Høgsberg <krh@bitplanet.net>2014-01-13 16:02:29 -0800
commitfa506b6dda941438e5325ddf09221c12a6cdbd0d (patch)
tree5588ac38cac4b93da8adce1c79e024cc37941eb5 /xwayland
parent81038fba866633c012f0475977498a77fe7f4329 (diff)
Fix XWayland transient window location.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73517 Signed-off-by: Axel Davy <axel.davy@ens.fr>
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/window-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 70c8cf7c..d475e360 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -2218,8 +2218,8 @@ xserver_map_shell_surface(struct weston_wm *wm,
parent = window->transient_for;
shell_interface->set_transient(window->shsurf,
parent->surface,
- parent->x - window->x,
- parent->y - window->y, 0);
+ window->x - parent->x,
+ window->y - parent->y, 0);
} else {
shell_interface->set_toplevel(window->shsurf);
}