summaryrefslogtreecommitdiff
path: root/xwayland/window-manager.c
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-01-29 21:16:05 +0900
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-01-29 21:16:05 +0900
commitef9195febc0e67a116b2f1d093cbcbeb629c92b4 (patch)
treecd78faf6ac50b0d4e726009843b84b320e210570 /xwayland/window-manager.c
parentb5db437f0d89404936c654e43f0fce8c4d1e7715 (diff)
downloadweston-ef9195febc0e67a116b2f1d093cbcbeb629c92b4.tar.gz
Weston 1.4.0
Diffstat (limited to 'xwayland/window-manager.c')
-rw-r--r--xwayland/window-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 70c8cf7c..1bb9825d 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -2214,12 +2214,12 @@ xserver_map_shell_surface(struct weston_wm *wm,
window->x,
window->y,
WL_SHELL_SURFACE_TRANSIENT_INACTIVE);
- } else if (window->transient_for) {
+ } else if (window->transient_for && window->transient_for->surface) {
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);
}