Changeset View
Changeset View
Standalone View
Standalone View
xwl/xwayland.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 43 | public: | |||
---|---|---|---|---|---|
50 | void prepareDestroy(); | 50 | void prepareDestroy(); | ||
51 | 51 | | |||
52 | xcb_screen_t *xcbScreen() const { | 52 | xcb_screen_t *xcbScreen() const { | ||
53 | return m_xcbScreen; | 53 | return m_xcbScreen; | ||
54 | } | 54 | } | ||
55 | const xcb_query_extension_reply_t *xfixes() const { | 55 | const xcb_query_extension_reply_t *xfixes() const { | ||
56 | return m_xfixes; | 56 | return m_xfixes; | ||
57 | } | 57 | } | ||
58 | uint32_t releaseNumber() const { | ||||
59 | return m_releaseNumber; | ||||
60 | } | ||||
58 | 61 | | |||
59 | Q_SIGNALS: | 62 | Q_SIGNALS: | ||
60 | void initialized(); | 63 | void initialized(); | ||
61 | void criticalError(int code); | 64 | void criticalError(int code); | ||
62 | 65 | | |||
63 | private: | 66 | private: | ||
64 | void createX11Connection(); | 67 | void createX11Connection(); | ||
65 | void continueStartupWithX(); | 68 | void continueStartupWithX(); | ||
66 | 69 | | |||
67 | DragEventReply dragMoveFilter(Toplevel *target, const QPoint &pos) override; | 70 | DragEventReply dragMoveFilter(Toplevel *target, const QPoint &pos) override; | ||
68 | 71 | | |||
69 | int m_xcbConnectionFd = -1; | 72 | int m_xcbConnectionFd = -1; | ||
70 | QProcess *m_xwaylandProcess = nullptr; | 73 | QProcess *m_xwaylandProcess = nullptr; | ||
71 | QMetaObject::Connection m_xwaylandFailConnection; | 74 | QMetaObject::Connection m_xwaylandFailConnection; | ||
72 | 75 | | |||
73 | xcb_screen_t *m_xcbScreen = nullptr; | 76 | xcb_screen_t *m_xcbScreen = nullptr; | ||
74 | const xcb_query_extension_reply_t *m_xfixes = nullptr; | 77 | const xcb_query_extension_reply_t *m_xfixes = nullptr; | ||
75 | DataBridge *m_dataBridge = nullptr; | 78 | DataBridge *m_dataBridge = nullptr; | ||
76 | 79 | | |||
77 | ApplicationWaylandAbstract *m_app; | 80 | ApplicationWaylandAbstract *m_app; | ||
81 | uint32_t m_releaseNumber = 0; | ||||
78 | 82 | | |||
79 | Q_DISABLE_COPY(Xwayland) | 83 | Q_DISABLE_COPY(Xwayland) | ||
80 | }; | 84 | }; | ||
81 | 85 | | |||
82 | } // namespace Xwl | 86 | } // namespace Xwl | ||
83 | } // namespace KWin | 87 | } // namespace KWin | ||
84 | 88 | | |||
85 | #endif | 89 | #endif |