Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-06-29 10:34:43 +0300
committerCampbell Barton <campbell@blender.org>2022-06-29 10:34:43 +0300
commit930398d5b18e59099d340d460c46840d643068b1 (patch)
treef472cf50086558da1e189dbf1f0adcd22d7401ce /intern/ghost/intern/GHOST_WindowWayland.cpp
parent6b2dd3e31483ae3bac1ae2ccf611e62759fde25f (diff)
GHOST/Wayland: quiet warning with empty title with libdecor
Set the title before showing the window.
Diffstat (limited to 'intern/ghost/intern/GHOST_WindowWayland.cpp')
-rw-r--r--intern/ghost/intern/GHOST_WindowWayland.cpp4
1 files changed, 2 insertions, 2 deletions
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);