diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-29 10:34:43 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-29 10:34:43 +0300 |
commit | 930398d5b18e59099d340d460c46840d643068b1 (patch) | |
tree | f472cf50086558da1e189dbf1f0adcd22d7401ce /intern | |
parent | 6b2dd3e31483ae3bac1ae2ccf611e62759fde25f (diff) |
GHOST/Wayland: quiet warning with empty title with libdecor
Set the title before showing the window.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWayland.cpp | 4 |
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); |