shell: Take a wl_surface as parent for transient and popup windows

This commit is contained in:
Kristian Høgsberg
2012-06-27 10:22:58 -04:00
parent 0636ac307e
commit 8150b190d6
4 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -1329,7 +1329,7 @@ xserver_map_shell_surface(struct weston_wm *wm,
}
parent = hash_table_lookup(wm->window_hash, window->transient_for->id);
shell_interface->set_transient(window->shsurf, parent->shsurf,
shell_interface->set_transient(window->shsurf, parent->surface,
window->x - parent->x + t->margin + t->width,
window->y - parent->y + t->margin + t->titlebar_height,
WL_SHELL_SURFACE_TRANSIENT_INACTIVE);