KWindowSystem
kx11extras.h
A collection of functions to obtain information from and manipulate X11 windows.
Definition kx11extras.h:29
static bool compositingActive()
Returns true if a compositing manager is running (i.e.
static void setOnAllDesktops(WId win, bool b)
Sets window win to be present on all virtual desktops if is true.
Definition kx11extras.cpp:676
static QPixmap icon(WId win, int width=-1, int height=-1, bool scale=false)
Returns an icon for window win.
Definition kx11extras.cpp:749
static void forceActiveWindow(WId win, long time=0)
Sets window win to be the active window.
Definition kx11extras.cpp:586
void windowChanged(WId id, NET::Properties properties, NET::Properties2 properties2)
The window changed.
void activeWindowChanged(WId id)
Hint that <Window> is active (= has focus) now.
void numberOfDesktopsChanged(int num)
The number of desktops changed.
static void setCurrentDesktop(int desktop)
Convenience function to set the current desktop to desktop.
Definition kx11extras.cpp:658
static QList< WId > stackingOrder()
Returns the list of all toplevel windows currently managed by the window manager in the current stack...
Definition kx11extras.cpp:558
static WId activeWindow()
Returns the currently active window, or 0 if no window is active.
Definition kx11extras.cpp:565
void strutChanged()
Something changed with the struts, may or may not have changed the work area.
static QList< WId > windows()
Returns the list of all toplevel windows currently managed by the window manager in the order of crea...
Definition kx11extras.cpp:545
static void activateWindow(WId win, long time=0)
Requests that window win is activated.
Definition kx11extras.cpp:576
static void setOnActivities(WId win, const QStringList &activities)
Moves window win to activities activities.
Definition kx11extras.cpp:742
void stackingOrderChanged()
Emitted when the stacking order of the window changed.
void compositingChanged(bool enabled)
Compositing was enabled or disabled.
void currentDesktopChanged(int desktop)
Switched to another virtual desktop.
static void setOnDesktop(WId win, int desktop)
Moves window win to desktop desktop.
Definition kx11extras.cpp:696
QObject(QObject *parent)
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
virtual void connectNotify(const QMetaMethod &signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:08:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:08:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.