GHOST/Wayland: quiet warning with empty title with libdecor
Set the title before showing the window.
This commit is contained in:
parent
6b2dd3e314
commit
930398d5b1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue