GHOST/Wayland: quiet warning with empty title with libdecor

Set the title before showing the window.
This commit is contained in:
Campbell Barton 2022-06-29 17:34:43 +10:00
parent 6b2dd3e314
commit 930398d5b1
1 changed files with 2 additions and 2 deletions

View File

@ -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);