29 :
public QWaylandCompositorExtensionPrivate
30 ,
public QtWaylandServer::zqt_shell_v1
32 Q_DECLARE_PUBLIC(QWaylandQtShell)
35 QWaylandQtShellPrivate();
36 static QWaylandQtShellPrivate *get(QWaylandQtShell *qtShell) {
return qtShell->d_func(); }
37 void unregisterQtShellSurface(QWaylandQtShellSurface *qtShellSurface);
39 QList<QWaylandQtShellChrome *> m_chromes;
42 void zqt_shell_v1_surface_create(Resource *resource, wl_resource *surface, uint32_t id) override;
46 :
public QWaylandShellSurfacePrivate
47 ,
public QtWaylandServer::zqt_shell_surface_v1
49 Q_DECLARE_PUBLIC(QWaylandQtShellSurface)
52 QWaylandQtShellSurfacePrivate();
53 static QWaylandQtShellSurfacePrivate *get(QWaylandQtShellSurface *qtShellSurface)
55 return qtShellSurface->d_func();
58 void updateFrameMargins();
59 void configure(uint windowState,
const QRect &newGeometry);
62 void zqt_shell_surface_v1_destroy_resource(Resource *resource) override;
63 void zqt_shell_surface_v1_destroy(Resource *resource) override;
64 void zqt_shell_surface_v1_reposition(Resource *resource, int32_t x, int32_t y) override;
65 void zqt_shell_surface_v1_set_size(Resource *resource, int32_t width, int32_t height) override;
66 void zqt_shell_surface_v1_set_minimum_size(Resource *resource, int32_t width, int32_t height) override;
67 void zqt_shell_surface_v1_set_maximum_size(Resource *resource, int32_t width, int32_t height) override;
68 void zqt_shell_surface_v1_set_window_title(Resource *resource,
const QString &title) override;
69 void zqt_shell_surface_v1_set_window_flags(Resource *resource, uint32_t flags) override;
70 void zqt_shell_surface_v1_change_window_state(Resource *resource, uint32_t state) override;
71 void zqt_shell_surface_v1_ack_configure(Resource *resource, uint32_t serial) override;
73 void zqt_shell_surface_v1_start_system_resize(Resource *resource, uint32_t serial, uint32_t edge) override;
74 void zqt_shell_surface_v1_start_system_move(Resource *resource, uint32_t serial) override;
76 void zqt_shell_surface_v1_raise(Resource *resource) override;
77 void zqt_shell_surface_v1_lower(Resource *resource) override;
79 void zqt_shell_surface_v1_request_activate(Resource *resource) override;
82 QWaylandQtShell *m_qtShell =
nullptr;
83 QWaylandSurface *m_surface =
nullptr;
84 QRect m_windowGeometry;
87 uint m_windowFlags = 0;
88 uint m_windowState = 0;
89 QString m_windowTitle;
90 QMargins m_frameMargins;
91 bool m_positionSet =
false;
92 bool m_active =
false;
94 QPoint m_pendingPosition;
95 bool m_pendingPositionValid =
false;
98 uint32_t m_lastAckedConfigure = UINT32_MAX;
99 QMap<uint32_t, QPair<uint, QRect> > m_pendingConfigures;
101 QWaylandQtShellSurface::CapabilityFlags m_capabilities;
103 static QWaylandSurfaceRole s_role;