[Bf-blender-cvs] [930398d5b18] master: GHOST/Wayland: quiet warning with empty title with libdecor

Campbell Barton noreply at git.blender.org
Wed Jun 29 09:55:06 CEST 2022


Commit: 930398d5b18e59099d340d460c46840d643068b1
Author: Campbell Barton
Date:   Wed Jun 29 17:34:43 2022 +1000
Branches: master
https://developer.blender.org/rB930398d5b18e59099d340d460c46840d643068b1

GHOST/Wayland: quiet warning with empty title with libdecor

Set the title before showing the window.

===================================================================

M	intern/ghost/intern/GHOST_WindowWayland.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_WindowWayland.cpp b/intern/ghost/intern/GHOST_WindowWayland.cpp
index 1f358748ee9..a1936d3667c 100644
--- a/intern/ghost/intern/GHOST_WindowWayland.cpp
+++ b/intern/ghost/intern/GHOST_WindowWayland.cpp
@@ -449,6 +449,8 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system,
 
 #endif /* !WITH_GHOST_WAYLAND_LIBDECOR */
 
+  setTitle(title);
+
   wl_surface_set_user_data(w->wl_surface, this);
 
   /* Call top-level callbacks. */
@@ -473,8 +475,6 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system,
   setState(state);
 #endif
 
-  setTitle(title);
-
   /* EGL context. */
   if (setDrawingContextType(type) == GHOST_kFailure) {
     GHOST_PRINT("Failed to create EGL context" << std::endl);



More information about the Bf-blender-cvs mailing list