summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwaylandwlshellintegration_p.h
diff options
context:
space:
mode:
authorPier Luigi Fiorini <pierluigi.fiorini@gmail.com>2016-06-21 07:39:01 +0200
committerPier Luigi Fiorini <pierluigi.fiorini@hawaiios.org>2016-09-30 15:04:34 +0000
commit24c0acd239b81e31e3876e5d3b409105d3a8281b (patch)
treeab82da2debceaf135b4971000fc2439e93b837ac /src/compositor/extensions/qwaylandwlshellintegration_p.h
parent04c05e9a53f4fe59c58967809b91ea792b6cffbd (diff)
Compositor: implement wl_shell maximize and fullscreen
Change-Id: Iabdad67adfb9ef9574c89b1a72d1bf12406d985e Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandwlshellintegration_p.h')
-rw-r--r--src/compositor/extensions/qwaylandwlshellintegration_p.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandwlshellintegration_p.h b/src/compositor/extensions/qwaylandwlshellintegration_p.h
index 7befe4bf9..bbdfbd733 100644
--- a/src/compositor/extensions/qwaylandwlshellintegration_p.h
+++ b/src/compositor/extensions/qwaylandwlshellintegration_p.h
@@ -69,9 +69,12 @@ private Q_SLOTS:
void handleStartResize(QWaylandSeat *seat, QWaylandWlShellSurface::ResizeEdge edges);
void handleSetDefaultTopLevel();
void handleSetTransient(QWaylandSurface *parentSurface, const QPoint &relativeToParent, bool inactive);
+ void handleSetMaximized(QWaylandOutput *output);
+ void handleSetFullScreen(QWaylandWlShellSurface::FullScreenMethod method, uint framerate, QWaylandOutput *output);
void handleSetPopup(QWaylandSeat *seat, QWaylandSurface *parent, const QPoint &relativeToParent);
void handleShellSurfaceDestroyed();
void handleSurfaceHasContentChanged();
+ void handleRedraw();
void adjustOffsetForNextFrame(const QPointF &offset);
private:
@@ -101,6 +104,17 @@ private:
} resizeState;
bool isPopup;
+
+ enum class State {
+ Windowed,
+ Maximized,
+ FullScreen
+ };
+
+ State currentState;
+ State nextState;
+ QPointF normalPosition;
+ QPointF finalPosition;
};
}