Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinglobals.h
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Line(s) | |||||
133 | enum class SwipeDirection { | 133 | enum class SwipeDirection { | ||
134 | Invalid, | 134 | Invalid, | ||
135 | Down, | 135 | Down, | ||
136 | Left, | 136 | Left, | ||
137 | Up, | 137 | Up, | ||
138 | Right | 138 | Right | ||
139 | }; | 139 | }; | ||
140 | 140 | | |||
141 | /** | ||||
142 | * Represents the state of the session running outside kwin | ||||
143 | * Under Plasma this is managed by ksmserver | ||||
144 | */ | ||||
145 | enum class SessionState { | ||||
146 | Normal, | ||||
147 | Saving, | ||||
148 | Quitting | ||||
149 | }; | ||||
150 | | ||||
141 | inline | 151 | inline | ||
142 | KWIN_EXPORT xcb_connection_t *connection() | 152 | KWIN_EXPORT xcb_connection_t *connection() | ||
143 | { | 153 | { | ||
144 | static xcb_connection_t *s_con = nullptr; | 154 | static xcb_connection_t *s_con = nullptr; | ||
145 | if (!s_con) { | 155 | if (!s_con) { | ||
146 | s_con = reinterpret_cast<xcb_connection_t*>(qApp->property("x11Connection").value<void*>()); | 156 | s_con = reinterpret_cast<xcb_connection_t*>(qApp->property("x11Connection").value<void*>()); | ||
147 | } | 157 | } | ||
148 | Q_ASSERT(qApp); | 158 | Q_ASSERT(qApp); | ||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |