36 bool eventFilter(QObject *object, QEvent *event)
override;
40 void handleStartResize(QWaylandSeat *seat, QWaylandWlShellSurface::ResizeEdge edges);
41 void handleSetDefaultTopLevel();
42 void handleSetTransient(QWaylandSurface *parentSurface,
const QPoint &relativeToParent,
bool inactive);
43 void handleSetMaximized(QWaylandOutput *output);
44 void handleSetFullScreen(QWaylandWlShellSurface::FullScreenMethod method, uint framerate, QWaylandOutput *output);
45 void handleSetPopup(QWaylandSeat *seat, QWaylandSurface *parent,
const QPoint &relativeToParent);
46 void handleShellSurfaceDestroyed();
47 void handleSurfaceHasContentChanged();
49 void adjustOffsetForNextFrame(
const QPointF &offset);
50 void handleFullScreenSizeChanged();
51 void handleMaximizedSizeChanged();
54 enum class GrabberState {
60 void handlePopupClosed();
61 void handlePopupRemoved();
62 qreal devicePixelRatio()
const;
64 QWaylandQuickShellSurfaceItem *m_item =
nullptr;
65 QPointer<QWaylandWlShellSurface> m_shellSurface;
66 GrabberState grabberState = GrabberState::Default;
73 QWaylandSeat *seat =
nullptr;
77 bool initialized =
false;
88 State currentState = State::Windowed;
89 State nextState = State::Windowed;
98 QPointF normalPosition;
99 QPointF finalPosition;
101 bool filterMouseMoveEvent(QMouseEvent *event);
102 bool filterMouseReleaseEvent(QMouseEvent *event);