GHOST/wayland: set parent relation only for dialogs to mimic X11 behaviour

This commit is contained in:
Christian Rauch 2021-05-23 16:21:02 +01:00
parent 1fd653dd82
commit e0bc5c4087
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system,
xdg_surface_add_listener(w->xdg_surface, &surface_listener, w);
xdg_toplevel_add_listener(w->xdg_toplevel, &toplevel_listener, w);
if (parentWindow) {
if (parentWindow && is_dialog) {
xdg_toplevel_set_parent(
w->xdg_toplevel, dynamic_cast<const GHOST_WindowWayland *>(parentWindow)->w->xdg_toplevel);
}