diff options
Diffstat (limited to 'intern/ghost/intern/GHOST_WindowWayland.cpp')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWayland.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWayland.cpp b/intern/ghost/intern/GHOST_WindowWayland.cpp index 0ea6f5f8ecb..ef02db7abc3 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.cpp +++ b/intern/ghost/intern/GHOST_WindowWayland.cpp @@ -39,6 +39,7 @@ struct window_t { bool is_maximised; bool is_fullscreen; bool is_active; + bool is_dialog; int32_t width, height; }; @@ -144,6 +145,7 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system, GHOST_TWindowState state, const GHOST_IWindow *parentWindow, GHOST_TDrawingContextType type, + const bool is_dialog, const bool stereoVisual, const bool exclusive) : GHOST_Window(width, height, state, stereoVisual, exclusive), @@ -155,6 +157,8 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system, w->width = int32_t(width); w->height = int32_t(height); + w->is_dialog = is_dialog; + /* Window surfaces. */ w->surface = wl_compositor_create_surface(m_system->compositor()); w->egl_window = wl_egl_window_create(w->surface, int(width), int(height)); @@ -376,6 +380,11 @@ GHOST_TSuccess GHOST_WindowWayland::endFullScreen() const return GHOST_kSuccess; } +bool GHOST_WindowWayland::isDialog() const +{ + return w->is_dialog; +} + /** * \param type The type of rendering context create. * \return Indication of success. |