Changeset View
Changeset View
Standalone View
Standalone View
utils.h
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | |||||
138 | inline | 138 | inline | ||
139 | MaximizeMode operator^(MaximizeMode m1, MaximizeMode m2) | 139 | MaximizeMode operator^(MaximizeMode m1, MaximizeMode m2) | ||
140 | { | 140 | { | ||
141 | return MaximizeMode(int(m1) ^ int(m2)); | 141 | return MaximizeMode(int(m1) ^ int(m2)); | ||
142 | } | 142 | } | ||
143 | 143 | | |||
144 | template <typename T> using ScopedCPointer = QScopedPointer<T, QScopedPointerPodDeleter>; | 144 | template <typename T> using ScopedCPointer = QScopedPointer<T, QScopedPointerPodDeleter>; | ||
145 | 145 | | |||
146 | void updateXTime(); | 146 | void KWIN_EXPORT updateXTime(); | ||
147 | void grabXServer(); | 147 | void grabXServer(); | ||
148 | void ungrabXServer(); | 148 | void ungrabXServer(); | ||
149 | bool grabbedXServer(); | 149 | bool grabbedXServer(); | ||
150 | bool grabXKeyboard(xcb_window_t w = rootWindow()); | 150 | bool KWIN_EXPORT grabXKeyboard(xcb_window_t w = rootWindow()); | ||
151 | void ungrabXKeyboard(); | 151 | void KWIN_EXPORT ungrabXKeyboard(); | ||
152 | 152 | | |||
153 | /** | 153 | /** | ||
154 | * Small helper class which performs @link grabXServer in the ctor and | 154 | * Small helper class which performs @link grabXServer in the ctor and | ||
155 | * @link ungrabXServer in the dtor. Use this class to ensure that grab and | 155 | * @link ungrabXServer in the dtor. Use this class to ensure that grab and | ||
156 | * ungrab are matched. | 156 | * ungrab are matched. | ||
157 | * | 157 | * | ||
158 | * To simplify usage consider using the macro GRAB_SERVER_DURING_CONTEXT | 158 | * To simplify usage consider using the macro GRAB_SERVER_DURING_CONTEXT | ||
159 | **/ | 159 | **/ | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |