diff options
author | Christian Rauch <Rauch.Christian@gmx.de> | 2021-05-23 18:21:02 +0300 |
---|---|---|
committer | Christian Rauch <Rauch.Christian@gmx.de> | 2021-06-03 20:18:27 +0300 |
commit | e0bc5c4087f961db7504959c4eb09c04bda0ff5c (patch) | |
tree | d311b33848909637c088b5e5d83857f87bfc0cf5 /intern | |
parent | 1fd653dd823e88fede039cc304341263642cec55 (diff) |
GHOST/wayland: set parent relation only for dialogs to mimic X11 behaviour
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWayland.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWayland.cpp b/intern/ghost/intern/GHOST_WindowWayland.cpp index e28ad805741..1412c496512 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.cpp +++ b/intern/ghost/intern/GHOST_WindowWayland.cpp @@ -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); } |