[Bf-blender-cvs] [e0bc5c4087f] master: GHOST/wayland: set parent relation only for dialogs to mimic X11 behaviour
Christian Rauch
noreply at git.blender.org
Thu Jun 3 19:24:16 CEST 2021
Commit: e0bc5c4087f961db7504959c4eb09c04bda0ff5c
Author: Christian Rauch
Date: Sun May 23 16:21:02 2021 +0100
Branches: master
https://developer.blender.org/rBe0bc5c4087f961db7504959c4eb09c04bda0ff5c
GHOST/wayland: set parent relation only for dialogs to mimic X11 behaviour
===================================================================
M intern/ghost/intern/GHOST_WindowWayland.cpp
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list