diff options
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandshellsurface.h')
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandshellsurface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandshellsurface.h b/src/plugins/platforms/wayland/qwaylandshellsurface.h index d18bda36d..8357ec246 100644 --- a/src/plugins/platforms/wayland/qwaylandshellsurface.h +++ b/src/plugins/platforms/wayland/qwaylandshellsurface.h @@ -56,8 +56,12 @@ public: QWaylandShellSurface(struct wl_shell_surface *shell_surface, QWaylandWindow *window); ~QWaylandShellSurface(); + bool isMaximized() const { return m_maximized; } + void resize(QWaylandInputDevice *inputDevice, enum wl_shell_surface_resize edges); void move(QWaylandInputDevice *inputDevice); + void toggleMaximize(); + void minimize(); void setTopLevel(); void updateTransientParent(QWindow *parent); @@ -71,6 +75,8 @@ public: private: struct wl_shell_surface *m_shell_surface; QWaylandWindow *m_window; + bool m_maximized; + QSize m_size; static void ping(void *data, struct wl_shell_surface *wl_shell_surface, |