KWin
|
#include <workspace.h>
Public Types | |
enum | ActivityFlag { ActivityFocus = 1 << 0 , ActivityFocusForce = 1 << 1 | ActivityFocus , ActivityRaise = 1 << 2 } |
enum | Direction { DirectionNorth , DirectionEast , DirectionSouth , DirectionWest , DirectionPrev , DirectionNext } |
Signals | |
void | workspaceInitialized () |
void | geometryChanged () |
void | currentActivityChanged () |
void | currentDesktopChanged (KWin::VirtualDesktop *previousDesktop, KWin::Window *) |
void | currentDesktopChanging (KWin::VirtualDesktop *currentDesktop, QPointF delta, KWin::Window *) |
void | currentDesktopChangingCancelled () |
void | windowAdded (KWin::Window *) |
void | windowRemoved (KWin::Window *) |
void | windowActivated (KWin::Window *) |
void | windowMinimizedChanged (KWin::Window *) |
void | groupAdded (KWin::Group *) |
void | deletedRemoved (KWin::Window *) |
void | configChanged () |
void | showingDesktopChanged (bool showing, bool animated) |
void | outputOrderChanged () |
void | outputAdded (KWin::Output *) |
void | outputRemoved (KWin::Output *) |
void | outputsChanged () |
void | stackingOrderChanged () |
Public Member Functions | |
Workspace () | |
~Workspace () override | |
bool | workspaceEvent (xcb_generic_event_t *) |
bool | hasWindow (const Window *) |
X11Window * | findClient (std::function< bool(const X11Window *)> func) const |
Finds the first Client matching the condition expressed by passed in func . | |
X11Window * | findClient (Predicate predicate, xcb_window_t w) const |
Finds the Client matching the given match predicate for the given window. | |
void | forEachClient (std::function< void(X11Window *)> func) |
X11Window * | findUnmanaged (std::function< bool(const X11Window *)> func) const |
X11Window * | findUnmanaged (xcb_window_t w) const |
Finds the Unmanaged with the given window id. | |
Window * | findWindow (const QUuid &internalId) const |
Window * | findWindow (std::function< bool(const Window *)> func) const |
void | forEachWindow (std::function< void(Window *)> func) |
Window * | findInternal (QWindow *w) const |
Finds a Window for the internal window w . | |
QRectF | clientArea (clientAreaOption, const Output *output, const VirtualDesktop *desktop) const |
QRectF | clientArea (clientAreaOption, const Window *window) const |
QRectF | clientArea (clientAreaOption, const Window *window, const Output *output) const |
QRectF | clientArea (clientAreaOption, const Window *window, const QPointF &pos) const |
QRect | geometry () const |
StrutRects | restrictedMoveArea (const VirtualDesktop *desktop, StrutAreas areas=StrutAreaAll) const |
bool | initializing () const |
Output * | xineramaIndexToOutput (int index) const |
void | setOutputOrder (const QList< Output * > &order) |
QList< Output * > | outputOrder () const |
Output * | activeOutput () const |
void | setActiveOutput (Output *output) |
void | setActiveOutput (const QPointF &pos) |
void | setActiveCursorOutput (Output *output) |
void | setActiveCursorOutput (const QPointF &pos) |
Window * | activeWindow () const |
Window * | mostRecentlyActivatedWindow () const |
Window * | windowUnderMouse (Output *output) const |
void | activateWindow (Window *window, bool force=false) |
bool | requestFocus (Window *window, bool force=false) |
bool | takeActivity (Window *window, ActivityFlags flags) |
bool | restoreFocus () |
void | gotFocusIn (const Window *window) |
void | setShouldGetFocus (Window *window) |
bool | activateNextWindow (Window *window) |
bool | focusChangeEnabled () |
void | setMoveResizeWindow (Window *window) |
QRectF | adjustClientArea (Window *window, const QRectF &area) const |
QPointF | adjustWindowPosition (Window *window, QPointF pos, bool unrestricted, double snapAdjust=1.0) |
QRectF | adjustWindowSize (Window *window, QRectF moveResizeGeom, Gravity gravity) |
void | raiseWindow (Window *window, bool nogroup=false) |
void | lowerWindow (Window *window, bool nogroup=false) |
void | raiseWindowRequest (Window *window, NET::RequestSource src=NET::FromApplication, xcb_timestamp_t timestamp=0) |
void | lowerWindowRequest (X11Window *window, NET::RequestSource src, xcb_timestamp_t timestamp) |
void | lowerWindowRequest (Window *window) |
void | restackWindowUnderActive (Window *window) |
void | restack (Window *window, Window *under, bool force=false) |
void | raiseOrLowerWindow (Window *window) |
void | resetUpdateToolWindowsTimer () |
void | restoreSessionStackingOrder (X11Window *window) |
void | updateStackingOrder (bool propagate_new_windows=false) |
void | forceRestacking () |
void | constrain (Window *below, Window *above) |
void | unconstrain (Window *below, Window *above) |
void | windowHidden (Window *) |
void | windowAttentionChanged (Window *, bool set) |
const QList< Window * > | windows () const |
void | stackScreenEdgesUnderOverrideRedirect () |
SessionManager * | sessionManager () const |
TileManager * | tileManager (Output *output) |
QPoint | cascadeOffset (const Window *c) const |
bool | inUpdateClientArea () const |
StrutRects | previousRestrictedMoveArea (const VirtualDesktop *desktop, StrutAreas areas=StrutAreaAll) const |
QHash< const Output *, QRect > | previousScreenSizes () const |
const QList< Window * > & | stackingOrder () const |
QList< Window * > | unconstrainedStackingOrder () const |
QList< X11Window * > | ensureStackingOrder (const QList< X11Window * > &windows) const |
QList< Window * > | ensureStackingOrder (const QList< Window * > &windows) const |
Window * | topWindowOnDesktop (VirtualDesktop *desktop, Output *output=nullptr, bool unconstrained=false, bool only_normal=true) const |
Window * | findDesktop (bool topmost, VirtualDesktop *desktop) const |
void | sendWindowToDesktops (Window *window, const QList< VirtualDesktop * > &desktops, bool dont_activate) |
void | windowToPreviousDesktop (Window *window) |
void | windowToNextDesktop (Window *window) |
void | sendWindowToOutput (Window *window, Output *output) |
void | addManualOverlay (xcb_window_t id) |
void | removeManualOverlay (xcb_window_t id) |
void | showWindowMenu (const QRect &pos, Window *cl) |
UserActionsMenu * | userActionsMenu () const |
void | showApplicationMenu (const QRect &pos, Window *window, int actionId) |
void | updateMinimizedOfTransients (Window *) |
void | updateOnAllDesktopsOfTransients (Window *) |
void | checkTransients (xcb_window_t w) |
SessionInfo * | takeSessionInfo (X11Window *) |
QString | supportInformation () const |
Output * | findOutput (Output *reference, Direction direction, bool wrapAround=false) const |
void | switchToOutput (Output *output) |
QList< Output * > | outputs () const |
Output * | outputAt (const QPointF &pos) const |
void | setShowingDesktop (bool showing, bool animated=true) |
bool | showingDesktop () const |
void | removeX11Window (X11Window *) |
void | setActiveWindow (Window *window) |
Group * | findGroup (xcb_window_t leader) const |
void | addGroup (Group *group) |
void | removeGroup (Group *group) |
Group * | findClientLeaderGroup (const X11Window *c) const |
int | unconstainedStackingOrderIndex (const X11Window *c) const |
void | removeUnmanaged (X11Window *) |
void | removeDeleted (Window *) |
void | addDeleted (Window *) |
bool | checkStartupNotification (xcb_window_t w, KStartupInfoId &id, KStartupInfoData &data) |
void | focusToNull () |
void | windowShortcutUpdated (Window *window) |
bool | shortcutAvailable (const QKeySequence &cut, Window *ignore=nullptr) const |
bool | globalShortcutsDisabled () const |
void | disableGlobalShortcutsForClient (bool disable) |
void | setWasUserInteraction () |
bool | wasUserInteraction () const |
qreal | packPositionLeft (const Window *window, qreal oldX, bool leftEdge) const |
qreal | packPositionRight (const Window *window, qreal oldX, bool rightEdge) const |
qreal | packPositionUp (const Window *window, qreal oldY, bool topEdge) const |
qreal | packPositionDown (const Window *window, qreal oldY, bool bottomEdge) const |
void | cancelDelayFocus () |
void | requestDelayFocus (Window *) |
void | updateFocusMousePosition (const QPointF &pos) |
QPointF | focusMousePosition () const |
Window * | moveResizeWindow () |
void | quickTileWindow (QuickTileMode mode) |
void | switchWindow (Direction direction) |
ShortcutDialog * | shortcutDialog () const |
void | addInternalWindow (InternalWindow *window) |
void | removeInternalWindow (InternalWindow *window) |
void | setInitialDesktop (int desktop) |
bool | inShouldGetFocus (Window *w) const |
Window * | lastActiveWindow () const |
FocusChain * | focusChain () const |
ApplicationMenu * | applicationMenu () const |
Decoration::DecorationBridge * | decorationBridge () const |
Outline * | outline () const |
Placement * | placement () const |
RuleBook * | rulebook () const |
ScreenEdges * | screenEdges () const |
bool | applyOutputConfiguration (const OutputConfiguration &config, const QList< Output * > &outputOrder={}) |
Static Public Member Functions | |
static Workspace * | self () |
Friends | |
class | StackingUpdatesBlocker |
bool | performTransiencyCheck () |
Workspace * | workspace () |
Definition at line 84 of file workspace.h.
Enumerator | |
---|---|
ActivityFocus | |
ActivityFocusForce | |
ActivityRaise |
Definition at line 202 of file workspace.h.
Enumerator | |
---|---|
DirectionNorth | |
DirectionEast | |
DirectionSouth | |
DirectionWest | |
DirectionPrev | |
DirectionNext |
Definition at line 326 of file workspace.h.
|
explicit |
Definition at line 92 of file workspace.cpp.
|
override |
Definition at line 441 of file workspace.cpp.
bool KWin::Workspace::activateNextWindow | ( | Window * | window | ) |
Definition at line 464 of file activation.cpp.
void KWin::Workspace::activateWindow | ( | Window * | window, |
bool | force = false ) |
Tries to activate the window window. This function performs what you expect when clicking the respective entry in a taskbar: showing and raising the window (this may imply switching to the another virtual desktop) and putting the focus onto it. Once X really gave focus to the window window as requested, the window itself will call setActiveWindow() and the operation is complete. This may not happen with certain focus policies, though.
Definition at line 282 of file activation.cpp.
Output * KWin::Workspace::activeOutput | ( | ) | const |
Definition at line 2553 of file workspace.cpp.
|
inline |
Returns the active window, i.e. the window that has the focus (or None if no window has the focus)
Definition at line 767 of file workspace.h.
void KWin::Workspace::addDeleted | ( | Window * | c | ) |
Definition at line 763 of file workspace.cpp.
|
inline |
Definition at line 777 of file workspace.h.
void KWin::Workspace::addInternalWindow | ( | InternalWindow * | window | ) |
Definition at line 2022 of file workspace.cpp.
|
inline |
Definition at line 296 of file workspace.h.
QRectF KWin::Workspace::adjustClientArea | ( | Window * | window, |
const QRectF & | area ) const |
Definition at line 2245 of file workspace.cpp.
QPointF KWin::Workspace::adjustWindowPosition | ( | Window * | window, |
QPointF | pos, | ||
bool | unrestricted, | ||
double | snapAdjust = 1.0 ) |
window is moved around to position pos. This gives the workspace the opportunity to interveniate and to implement snap-to-windows functionality.
The parameter snapAdjust is a multiplier used to calculate the effective snap zones. When 1.0, it means that the snap zones will be used without change.
Definition at line 2599 of file workspace.cpp.
QRectF KWin::Workspace::adjustWindowSize | ( | Window * | window, |
QRectF | moveResizeGeom, | ||
Gravity | gravity ) |
Definition at line 2766 of file workspace.cpp.
ApplicationMenu * KWin::Workspace::applicationMenu | ( | ) | const |
Definition at line 3038 of file workspace.cpp.
bool KWin::Workspace::applyOutputConfiguration | ( | const OutputConfiguration & | config, |
const QList< Output * > & | outputOrder = {} ) |
Apply the requested output configuration. Note that you must use this function instead of Platform::applyOutputChanges().
Definition at line 478 of file workspace.cpp.
void KWin::Workspace::cancelDelayFocus | ( | ) |
Definition at line 1538 of file workspace.cpp.
QPoint KWin::Workspace::cascadeOffset | ( | const Window * | c | ) | const |
Definition at line 361 of file placement.cpp.
bool KWin::Workspace::checkStartupNotification | ( | xcb_window_t | w, |
KStartupInfoId & | id, | ||
KStartupInfoData & | data ) |
Definition at line 1545 of file workspace.cpp.
void KWin::Workspace::checkTransients | ( | xcb_window_t | w | ) |
Definition at line 2146 of file workspace.cpp.
QRectF KWin::Workspace::clientArea | ( | clientAreaOption | opt, |
const Output * | output, | ||
const VirtualDesktop * | desktop ) const |
Returns the area available for windows. This is the desktop geometry minus windows on the dock. Placement algorithms should refer to this rather than Screens::geometry.
Definition at line 2411 of file workspace.cpp.
QRectF KWin::Workspace::clientArea | ( | clientAreaOption | opt, |
const Window * | window ) const |
Definition at line 2436 of file workspace.cpp.
QRectF KWin::Workspace::clientArea | ( | clientAreaOption | opt, |
const Window * | window, | ||
const Output * | output ) const |
Definition at line 2441 of file workspace.cpp.
QRectF KWin::Workspace::clientArea | ( | clientAreaOption | opt, |
const Window * | window, | ||
const QPointF & | pos ) const |
Definition at line 2452 of file workspace.cpp.
|
signal |
Definition at line 561 of file workspace.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
Decoration::DecorationBridge * KWin::Workspace::decorationBridge | ( | ) | const |
Definition at line 3043 of file workspace.cpp.
|
signal |
void KWin::Workspace::disableGlobalShortcutsForClient | ( | bool | disable | ) |
Definition at line 1601 of file workspace.cpp.
Definition at line 644 of file layers.cpp.
QList< X11Window * > KWin::Workspace::ensureStackingOrder | ( | const QList< X11Window * > & | windows | ) | const |
Definition at line 639 of file layers.cpp.
Finds the Client matching the given match predicate
for the given window.
predicate | Which window should be compared |
w | The window id to test against |
null
Definition at line 1934 of file workspace.cpp.
Finds the first Client matching the condition expressed by passed in func
.
Internally findClient uses the std::find_if algorithm and that determines how the function needs to be implemented. An example usage for finding a Client with a matching windowId
For the standard cases of matching the window id with one of the Client's windows use the simplified overload method findClient(Predicate, xcb_window_t). Above example can be simplified to:
func | Unary function that accepts a X11Window *as argument and returns a value convertible to bool. The value returned indicates whether the X11Window *is considered a match in the context of this function. The function shall not modify its argument. This can either be a function pointer or a function object. |
null
Definition at line 1905 of file workspace.cpp.
Definition at line 2066 of file workspace.cpp.
Window * KWin::Workspace::findDesktop | ( | bool | topmost, |
VirtualDesktop * | desktop ) const |
Definition at line 253 of file layers.cpp.
Group * KWin::Workspace::findGroup | ( | xcb_window_t | leader | ) | const |
Definition at line 2053 of file workspace.cpp.
Window * KWin::Workspace::findInternal | ( | QWindow * | w | ) | const |
Output * KWin::Workspace::findOutput | ( | Output * | reference, |
Direction | direction, | ||
bool | wrapAround = false ) const |
Definition at line 1231 of file workspace.cpp.
Definition at line 1916 of file workspace.cpp.
X11Window * KWin::Workspace::findUnmanaged | ( | xcb_window_t | w | ) | const |
Finds the Unmanaged with the given window id.
w | The window id to search for |
null
if there is no Unmanaged with given Id. Definition at line 1927 of file workspace.cpp.
Window * KWin::Workspace::findWindow | ( | const QUuid & | internalId | ) | const |
Definition at line 1962 of file workspace.cpp.
Definition at line 1957 of file workspace.cpp.
FocusChain * KWin::Workspace::focusChain | ( | ) | const |
Definition at line 3033 of file workspace.cpp.
|
inline |
Definition at line 213 of file workspace.h.
|
inline |
Definition at line 825 of file workspace.h.
void KWin::Workspace::focusToNull | ( | ) |
Puts the focus on a dummy window Just using XSetInputFocus() with None would block keyboard input
Definition at line 1554 of file workspace.cpp.
|
inline |
Definition at line 814 of file workspace.h.
void KWin::Workspace::forEachClient | ( | std::function< void(X11Window *)> | func | ) |
Definition at line 1895 of file workspace.cpp.
void KWin::Workspace::forEachWindow | ( | std::function< void(Window *)> | func | ) |
Definition at line 1969 of file workspace.cpp.
QRect KWin::Workspace::geometry | ( | ) | const |
Returns the geometry of this Workspace, i.e. the bounding rectangle of all outputs.
Definition at line 2457 of file workspace.cpp.
|
signal |
|
inline |
Definition at line 809 of file workspace.h.
void KWin::Workspace::gotFocusIn | ( | const Window * | window | ) |
Definition at line 552 of file activation.cpp.
|
signal |
bool KWin::Workspace::hasWindow | ( | const Window * | c | ) |
Definition at line 1974 of file workspace.cpp.
bool KWin::Workspace::initializing | ( | ) | const |
|
inline |
Definition at line 418 of file workspace.h.
bool KWin::Workspace::inUpdateClientArea | ( | ) | const |
Definition at line 2479 of file workspace.cpp.
|
inline |
Definition at line 422 of file workspace.h.
void KWin::Workspace::lowerWindow | ( | Window * | window, |
bool | nogroup = false ) |
Definition at line 296 of file layers.cpp.
void KWin::Workspace::lowerWindowRequest | ( | Window * | window | ) |
Definition at line 432 of file layers.cpp.
void KWin::Workspace::lowerWindowRequest | ( | X11Window * | window, |
NET::RequestSource | src, | ||
xcb_timestamp_t | timestamp ) |
Definition at line 419 of file layers.cpp.
|
inline |
Window that was activated, but it's not yet really activeWindow(), because we didn't process yet the matching FocusIn event. Used mostly in focus stealing prevention code.
Definition at line 772 of file workspace.h.
|
inline |
Returns a window that is currently being moved or resized by the user.
If none of windows is being moved or resized, null
will be returned.
Definition at line 396 of file workspace.h.
Outline * KWin::Workspace::outline | ( | ) | const |
Definition at line 3048 of file workspace.cpp.
|
signal |
Output * KWin::Workspace::outputAt | ( | const QPointF & | pos | ) | const |
Definition at line 1210 of file workspace.cpp.
QList< Output * > KWin::Workspace::outputOrder | ( | ) | const |
Definition at line 2548 of file workspace.cpp.
|
signal |
|
signal |
|
inline |
Definition at line 762 of file workspace.h.
|
signal |
qreal KWin::Workspace::packPositionDown | ( | const Window * | window, |
qreal | oldY, | ||
bool | bottomEdge ) const |
Definition at line 964 of file placement.cpp.
qreal KWin::Workspace::packPositionLeft | ( | const Window * | window, |
qreal | oldX, | ||
bool | leftEdge ) const |
Definition at line 882 of file placement.cpp.
qreal KWin::Workspace::packPositionRight | ( | const Window * | window, |
qreal | oldX, | ||
bool | rightEdge ) const |
Definition at line 909 of file placement.cpp.
qreal KWin::Workspace::packPositionUp | ( | const Window * | window, |
qreal | oldY, | ||
bool | topEdge ) const |
Definition at line 937 of file placement.cpp.
|
slot |
Definition at line 1156 of file useractions.cpp.
Placement * KWin::Workspace::placement | ( | ) | const |
Definition at line 3053 of file workspace.cpp.
StrutRects KWin::Workspace::previousRestrictedMoveArea | ( | const VirtualDesktop * | desktop, |
StrutAreas | areas = StrutAreaAll ) const |
Definition at line 2484 of file workspace.cpp.
QHash< const Output *, QRect > KWin::Workspace::previousScreenSizes | ( | ) | const |
Definition at line 2501 of file workspace.cpp.
void KWin::Workspace::quickTileWindow | ( | QuickTileMode | mode | ) |
Definition at line 856 of file placement.cpp.
void KWin::Workspace::raiseOrLowerWindow | ( | Window * | window | ) |
Definition at line 279 of file layers.cpp.
void KWin::Workspace::raiseWindow | ( | Window * | window, |
bool | nogroup = false ) |
Definition at line 354 of file layers.cpp.
void KWin::Workspace::raiseWindowRequest | ( | Window * | window, |
NET::RequestSource | src = NET::FromApplication, | ||
xcb_timestamp_t | timestamp = 0 ) |
Definition at line 409 of file layers.cpp.
|
slot |
Definition at line 965 of file workspace.cpp.
void KWin::Workspace::removeDeleted | ( | Window * | c | ) |
Definition at line 769 of file workspace.cpp.
|
inline |
Definition at line 783 of file workspace.h.
void KWin::Workspace::removeInternalWindow | ( | InternalWindow * | window | ) |
Definition at line 2040 of file workspace.cpp.
|
inline |
Definition at line 300 of file workspace.h.
void KWin::Workspace::removeUnmanaged | ( | X11Window * | window | ) |
Definition at line 754 of file workspace.cpp.
void KWin::Workspace::removeX11Window | ( | X11Window * | window | ) |
Destroys the window window
Definition at line 744 of file workspace.cpp.
void KWin::Workspace::requestDelayFocus | ( | Window * | window | ) |
Definition at line 1528 of file workspace.cpp.
bool KWin::Workspace::requestFocus | ( | Window * | window, |
bool | force = false ) |
Tries to activate the window by asking X for the input focus. This function does not perform any show, raise or desktop switching. See Workspace::activateWindow() instead.
Definition at line 355 of file activation.cpp.
void KWin::Workspace::resetUpdateToolWindowsTimer | ( | ) |
Definition at line 950 of file workspace.cpp.
Definition at line 437 of file layers.cpp.
void KWin::Workspace::restackWindowUnderActive | ( | Window * | window | ) |
Definition at line 464 of file layers.cpp.
bool KWin::Workspace::restoreFocus | ( | ) |
Called from X11Window after FocusIn that wasn't initiated by KWin and the window wasn't allowed to activate.
Returns true
if the focus has been restored successfully; otherwise returns false
.
Definition at line 611 of file activation.cpp.
void KWin::Workspace::restoreSessionStackingOrder | ( | X11Window * | window | ) |
Definition at line 473 of file layers.cpp.
StrutRects KWin::Workspace::restrictedMoveArea | ( | const VirtualDesktop * | desktop, |
StrutAreas | areas = StrutAreaAll ) const |
Definition at line 2462 of file workspace.cpp.
RuleBook * KWin::Workspace::rulebook | ( | ) | const |
Definition at line 3058 of file workspace.cpp.
ScreenEdges * KWin::Workspace::screenEdges | ( | ) | const |
Definition at line 3063 of file workspace.cpp.
|
inlinestatic |
Definition at line 91 of file workspace.h.
void KWin::Workspace::sendWindowToDesktops | ( | Window * | window, |
const QList< VirtualDesktop * > & | desktops, | ||
bool | dont_activate ) |
Sends window window to desktop desk.
Takes care of transients as well.
Definition at line 1485 of file workspace.cpp.
Definition at line 1514 of file workspace.cpp.
|
inline |
Definition at line 799 of file workspace.h.
void KWin::Workspace::setActiveCursorOutput | ( | const QPointF & | pos | ) |
Definition at line 2585 of file workspace.cpp.
void KWin::Workspace::setActiveCursorOutput | ( | Output * | output | ) |
Definition at line 2580 of file workspace.cpp.
void KWin::Workspace::setActiveOutput | ( | const QPointF & | pos | ) |
Definition at line 2575 of file workspace.cpp.
void KWin::Workspace::setActiveOutput | ( | Output * | output | ) |
Definition at line 2570 of file workspace.cpp.
void KWin::Workspace::setActiveWindow | ( | Window * | window | ) |
Informs the workspace about the active window, i.e. the window that has the focus (or None if no window has the focus). This functions is called by the window itself that gets focus. It has no other effect than fixing the focus chain and the return value of activeWindow(). And of course, to propagate the active window to the world.
Definition at line 216 of file activation.cpp.
void KWin::Workspace::setInitialDesktop | ( | int | desktop | ) |
Definition at line 2048 of file workspace.cpp.
void KWin::Workspace::setMoveResizeWindow | ( | Window * | window | ) |
Indicates that the given window is being moved or resized by the user.
Marks the window as being moved or resized by the user.
Definition at line 3004 of file workspace.cpp.
void KWin::Workspace::setOutputOrder | ( | const QList< Output * > & | order | ) |
Definition at line 2540 of file workspace.cpp.
void KWin::Workspace::setShouldGetFocus | ( | Window * | window | ) |
Definition at line 564 of file activation.cpp.
void KWin::Workspace::setShowingDesktop | ( | bool | showing, |
bool | animated = true ) |
Set "Show Desktop" status
showing | true to show the desktop, false to restore the window positions |
animated | true if the "Show Desktop Animation" should be played, otherwise false |
Definition at line 1567 of file workspace.cpp.
|
slot |
Definition at line 1110 of file useractions.cpp.
void KWin::Workspace::setWasUserInteraction | ( | ) |
Definition at line 2000 of file workspace.cpp.
bool KWin::Workspace::shortcutAvailable | ( | const QKeySequence & | cut, |
Window * | ignore = nullptr ) const |
Definition at line 1853 of file useractions.cpp.
|
inline |
Definition at line 404 of file workspace.h.
void KWin::Workspace::showApplicationMenu | ( | const QRect & | pos, |
Window * | window, | ||
int | actionId ) |
Definition at line 1730 of file useractions.cpp.
|
inline |
Definition at line 804 of file workspace.h.
|
signal |
void KWin::Workspace::showWindowMenu | ( | const QRect & | pos, |
Window * | cl ) |
Shows the menu operations menu for the window and makes it active if it's not already.
Definition at line 1725 of file useractions.cpp.
|
slot |
Definition at line 1256 of file useractions.cpp.
|
slot |
Definition at line 867 of file useractions.cpp.
|
slot |
Kill Window feature, similar to xkill.
Definition at line 1614 of file useractions.cpp.
|
slot |
Definition at line 875 of file useractions.cpp.
|
slot |
Reread settings
Definition at line 974 of file workspace.cpp.
|
slot |
Definition at line 1510 of file useractions.cpp.
|
slot |
Definition at line 1306 of file useractions.cpp.
|
slot |
Definition at line 1313 of file useractions.cpp.
|
slot |
Definition at line 1292 of file useractions.cpp.
|
slot |
Definition at line 1327 of file useractions.cpp.
|
slot |
Definition at line 1320 of file useractions.cpp.
|
slot |
Definition at line 1299 of file useractions.cpp.
|
slot |
Definition at line 1285 of file useractions.cpp.
|
slot |
Toggles show desktop.
Definition at line 1520 of file useractions.cpp.
|
slot |
Definition at line 1497 of file useractions.cpp.
|
slot |
Definition at line 1504 of file useractions.cpp.
|
slot |
Moves the active window to the center of the screen.
Definition at line 734 of file placement.cpp.
|
slot |
Closes the active window.
Definition at line 1738 of file useractions.cpp.
|
slot |
Definition at line 744 of file placement.cpp.
|
slot |
Definition at line 801 of file placement.cpp.
|
slot |
Definition at line 1483 of file useractions.cpp.
|
slot |
Lowers the active window.
Definition at line 1446 of file useractions.cpp.
|
slot |
Maximizes the active window.
Definition at line 1386 of file useractions.cpp.
|
slot |
Maximizes the active window horiozontally.
Definition at line 1406 of file useractions.cpp.
|
slot |
Maximizes the active window vertically.
Definition at line 1396 of file useractions.cpp.
|
slot |
Minimizes the active window.
Definition at line 1416 of file useractions.cpp.
|
slot |
Starts keyboard move mode for the active window.
Definition at line 1751 of file useractions.cpp.
|
slot |
Definition at line 724 of file placement.cpp.
|
slot |
Moves active window left until in bumps into another window or workarea edge.
Definition at line 697 of file placement.cpp.
|
slot |
Definition at line 706 of file placement.cpp.
|
slot |
Definition at line 715 of file placement.cpp.
|
slot |
Definition at line 1490 of file useractions.cpp.
|
slot |
Definition at line 1476 of file useractions.cpp.
|
slot |
Shows the window operations popup menu for the active window.
Definition at line 1715 of file useractions.cpp.
|
slot |
Raises the active window.
Definition at line 1436 of file useractions.cpp.
|
slot |
Does a toggle-raise-and-lower on the active window.
Definition at line 1469 of file useractions.cpp.
|
slot |
Starts keyboard resize mode for the active window.
Definition at line 1761 of file useractions.cpp.
|
slot |
Shades/unshades the active window respectively.
Definition at line 1426 of file useractions.cpp.
|
slot |
Definition at line 777 of file placement.cpp.
|
slot |
Definition at line 832 of file placement.cpp.
|
slot |
Definition at line 1355 of file useractions.cpp.
|
slot |
Definition at line 1362 of file useractions.cpp.
|
slot |
Definition at line 1265 of file useractions.cpp.
|
slot |
Definition at line 1604 of file useractions.cpp.
|
slot |
Definition at line 1590 of file useractions.cpp.
|
slot |
Definition at line 1583 of file useractions.cpp.
|
slot |
Definition at line 1597 of file useractions.cpp.
|
slot |
Definition at line 1341 of file useractions.cpp.
|
slot |
Moves the active window to the next desktop.
Definition at line 1542 of file useractions.cpp.
|
slot |
Definition at line 1376 of file useractions.cpp.
|
slot |
Moves the active window to the previous desktop.
Definition at line 1557 of file useractions.cpp.
|
slot |
Definition at line 1369 of file useractions.cpp.
|
slot |
Definition at line 1348 of file useractions.cpp.
|
slot |
Definition at line 1334 of file useractions.cpp.
|
inline |
Returns the list of windows sorted in stacking order, with topmost window at the last position
Definition at line 788 of file workspace.h.
|
signal |
This signal is emitted when the stacking order changed, i.e. a window is risen or lowered
void KWin::Workspace::stackScreenEdgesUnderOverrideRedirect | ( | ) |
Some fullscreen effects have to raise the screenedge on top of an input window, thus all windows this function puts them back where they belong for regular use and is some cheap variant of the regular propagateWindows function in that it completely ignores managed windows and everything else and also does not update the NETWM property. Called from Effects::destroyInputWindow so far.
Definition at line 127 of file layers.cpp.
QString KWin::Workspace::supportInformation | ( | ) | const |
Definition at line 1620 of file workspace.cpp.
void KWin::Workspace::switchToOutput | ( | Output * | output | ) |
Definition at line 535 of file activation.cpp.
void KWin::Workspace::switchWindow | ( | Direction | direction | ) |
Switches to the nearest window in given direction.
Definition at line 1625 of file useractions.cpp.
bool KWin::Workspace::takeActivity | ( | Window * | window, |
ActivityFlags | flags ) |
Definition at line 360 of file activation.cpp.
SessionInfo * KWin::Workspace::takeSessionInfo | ( | X11Window * | ) |
TileManager * KWin::Workspace::tileManager | ( | Output * | output | ) |
Definition at line 3068 of file workspace.cpp.
Window * KWin::Workspace::topWindowOnDesktop | ( | VirtualDesktop * | desktop, |
Output * | output = nullptr, | ||
bool | unconstrained = false, | ||
bool | only_normal = true ) const |
Returns topmost visible window. Windows on the dock, the desktop or of any other special kind are excluded. Also if the window doesn't accept focus it's excluded.
Definition at line 224 of file layers.cpp.
int KWin::Workspace::unconstainedStackingOrderIndex | ( | const X11Window * | c | ) | const |
Definition at line 598 of file workspace.cpp.
QList< Window * > KWin::Workspace::unconstrainedStackingOrder | ( | ) | const |
Definition at line 649 of file layers.cpp.
|
slot |
Updates the current client areas according to the current windows.
The client area is the area that is available for windows (that which is not taken by windows like panels, the top-of-screen menu etc).
Definition at line 2308 of file workspace.cpp.
|
inline |
updates the mouse position to track whether a focus follow mouse focus change was caused by an actual mouse move is esp. called on enter/motion events of inactive windows since an active window doesn't receive mouse events, it must also be invoked if a (potentially) active window might be moved/resize away from the cursor (causing a leave event)
Definition at line 820 of file workspace.h.
void KWin::Workspace::updateMinimizedOfTransients | ( | Window * | window | ) |
Definition at line 2096 of file workspace.cpp.
void KWin::Workspace::updateOnAllDesktopsOfTransients | ( | Window * | window | ) |
Sets the window's transient windows' on_all_desktops property to on_all_desktops.
Definition at line 2136 of file workspace.cpp.
void KWin::Workspace::updateStackingOrder | ( | bool | propagate_new_windows = false | ) |
Definition at line 93 of file layers.cpp.
|
inline |
Definition at line 310 of file workspace.h.
|
inline |
Definition at line 794 of file workspace.h.
|
signal |
|
signal |
void KWin::Workspace::windowAttentionChanged | ( | Window * | window, |
bool | set ) |
Definition at line 626 of file activation.cpp.
void KWin::Workspace::windowHidden | ( | Window * | window | ) |
Informs the workspace that the window window has been hidden. If it was the active window (or to-become the active window), the workspace activates another one.
c
may already be destroyed. Definition at line 435 of file activation.cpp.
|
signal |
|
signal |
|
inline |
Definition at line 248 of file workspace.h.
void KWin::Workspace::windowShortcutUpdated | ( | Window * | window | ) |
Definition at line 1127 of file useractions.cpp.
void KWin::Workspace::windowToNextDesktop | ( | Window * | window | ) |
Definition at line 1549 of file useractions.cpp.
void KWin::Workspace::windowToPreviousDesktop | ( | Window * | window | ) |
Definition at line 1564 of file useractions.cpp.
Definition at line 441 of file activation.cpp.
bool KWin::Workspace::workspaceEvent | ( | xcb_generic_event_t * | e | ) |
Handles workspace specific XCB event
Definition at line 147 of file events.cpp.
|
signal |
Emitted after the Workspace has setup the complete initialization process. This can be used to connect to for performing post-workspace initialization.
Output * KWin::Workspace::xineramaIndexToOutput | ( | int | index | ) | const |
Definition at line 2506 of file workspace.cpp.
|
friend |
|
friend |
Definition at line 704 of file workspace.h.
|
friend |
Definition at line 830 of file workspace.h.