Changeset View
Changeset View
Standalone View
Standalone View
workspace.h
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Line(s) | 67 | public: | |||
---|---|---|---|---|---|
181 | void gotFocusIn(const AbstractClient*); | 181 | void gotFocusIn(const AbstractClient*); | ||
182 | void setShouldGetFocus(AbstractClient*); | 182 | void setShouldGetFocus(AbstractClient*); | ||
183 | bool activateNextClient(AbstractClient* c); | 183 | bool activateNextClient(AbstractClient* c); | ||
184 | bool focusChangeEnabled() { | 184 | bool focusChangeEnabled() { | ||
185 | return block_focus == 0; | 185 | return block_focus == 0; | ||
186 | } | 186 | } | ||
187 | 187 | | |||
188 | /** | 188 | /** | ||
189 | * Indicates that the client c is being moved around by the user. | 189 | * Indicates that the client c is being moved or resized by the user. | ||
190 | **/ | 190 | **/ | ||
191 | void setClientIsMoving(AbstractClient* c); | 191 | void setMoveResizeClient(AbstractClient* c); | ||
192 | 192 | | |||
193 | QPoint adjustClientPosition(AbstractClient* c, QPoint pos, bool unrestricted, double snapAdjust = 1.0); | 193 | QPoint adjustClientPosition(AbstractClient* c, QPoint pos, bool unrestricted, double snapAdjust = 1.0); | ||
194 | QRect adjustClientSize(AbstractClient* c, QRect moveResizeGeom, int mode); | 194 | QRect adjustClientSize(AbstractClient* c, QRect moveResizeGeom, int mode); | ||
195 | void raiseClient(AbstractClient* c, bool nogroup = false); | 195 | void raiseClient(AbstractClient* c, bool nogroup = false); | ||
196 | void lowerClient(AbstractClient* c, bool nogroup = false); | 196 | void lowerClient(AbstractClient* c, bool nogroup = false); | ||
197 | void raiseClientRequest(AbstractClient* c, NET::RequestSource src = NET::FromApplication, xcb_timestamp_t timestamp = 0); | 197 | void raiseClientRequest(AbstractClient* c, NET::RequestSource src = NET::FromApplication, xcb_timestamp_t timestamp = 0); | ||
198 | void lowerClientRequest(Client* c, NET::RequestSource src, xcb_timestamp_t timestamp); | 198 | void lowerClientRequest(Client* c, NET::RequestSource src, xcb_timestamp_t timestamp); | ||
199 | void lowerClientRequest(AbstractClient* c); | 199 | void lowerClientRequest(AbstractClient* c); | ||
▲ Show 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | 254 | public: | |||
356 | * an actual mouse move | 356 | * an actual mouse move | ||
357 | * is esp. called on enter/motion events of inactive windows | 357 | * is esp. called on enter/motion events of inactive windows | ||
358 | * since an active window doesn't receive mouse events, it must also be invoked if a (potentially) | 358 | * since an active window doesn't receive mouse events, it must also be invoked if a (potentially) | ||
359 | * active window might be moved/resize away from the cursor (causing a leave event) | 359 | * active window might be moved/resize away from the cursor (causing a leave event) | ||
360 | **/ | 360 | **/ | ||
361 | void updateFocusMousePosition(const QPoint& pos); | 361 | void updateFocusMousePosition(const QPoint& pos); | ||
362 | QPoint focusMousePosition() const; | 362 | QPoint focusMousePosition() const; | ||
363 | 363 | | |||
364 | AbstractClient* getMovingClient() { | 364 | /** | ||
365 | * Returns a client that is currently being moved or resized by the user. | ||||
366 | * | ||||
367 | * If none of clients is being moved or resized, @c null will be returned. | ||||
368 | **/ | ||||
369 | AbstractClient* moveResizeClient() { | ||||
365 | return movingClient; | 370 | return movingClient; | ||
366 | } | 371 | } | ||
367 | 372 | | |||
368 | /** | 373 | /** | ||
369 | * @returns Whether we have a Compositor and it is active (Scene created) | 374 | * @returns Whether we have a Compositor and it is active (Scene created) | ||
370 | **/ | 375 | **/ | ||
371 | bool compositing() const; | 376 | bool compositing() const; | ||
372 | 377 | | |||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |