KWin
|
#include <window.h>
Public Types | |
enum | SizeMode { SizeModeAny , SizeModeFixedW , SizeModeFixedH , SizeModeMax } |
enum class | SameApplicationCheck { RelaxedForActive = 1 << 0 , AllowCrossProcesses = 1 << 1 } |
Public Slots | |
virtual void | closeWindow ()=0 |
Public Member Functions | |
~Window () override | |
void | ref () |
void | unref () |
QRectF | moveResizeGeometry () const |
Output * | moveResizeOutput () const |
void | setMoveResizeOutput (Output *output) |
QRectF | bufferGeometry () const |
QRectF | frameGeometry () const |
QRectF | clientGeometry () const |
QMargins | frameMargins () const |
virtual QSizeF | minSize () const |
virtual QSizeF | maxSize () const |
QSizeF | size () const |
QPointF | pos () const |
QRectF | rect () const |
qreal | x () const |
qreal | y () const |
qreal | width () const |
qreal | height () const |
bool | isOnOutput (Output *output) const |
bool | isOnActiveOutput () const |
Output * | output () const |
void | setOutput (Output *output) |
QSizeF | clientSize () const |
QRectF | visibleGeometry () const |
QPointF | mapToFrame (const QPointF &point) const |
QPointF | mapToLocal (const QPointF &point) const |
QPointF | mapFromLocal (const QPointF &point) const |
virtual QPointF | framePosToClientPos (const QPointF &point) const |
virtual QPointF | clientPosToFramePos (const QPointF &point) const |
virtual QSizeF | frameSizeToClientSize (const QSizeF &size) const |
virtual QSizeF | clientSizeToFrameSize (const QSizeF &size) const |
QRectF | frameRectToClientRect (const QRectF &rect) const |
QRectF | clientRectToFrameRect (const QRectF &rect) const |
virtual QSizeF | constrainClientSize (const QSizeF &size, SizeMode mode=SizeModeAny) const |
QSizeF | constrainFrameSize (const QSizeF &size, SizeMode mode=SizeModeAny) const |
void | move (const QPointF &point) |
void | resize (const QSizeF &size) |
void | moveResize (const QRectF &rect) |
void | growHorizontal () |
void | shrinkHorizontal () |
void | growVertical () |
void | shrinkVertical () |
virtual QRectF | resizeWithChecks (const QRectF &geometry, const QSizeF &s)=0 |
void | keepInArea (QRectF area, bool partial=false) |
QRectF | keepInArea (QRectF geometry, QRectF area, bool partial=false) |
virtual NET::WindowType | windowType () const =0 |
bool | hasNETSupport () const |
bool | isDesktop () const |
bool | isDock () const |
bool | isToolbar () const |
bool | isMenu () const |
bool | isNormalWindow () const |
bool | isDialog () const |
bool | isSplash () const |
bool | isUtility () const |
bool | isDropdownMenu () const |
bool | isPopupMenu () const |
bool | isTooltip () const |
bool | isNotification () const |
bool | isCriticalNotification () const |
bool | isAppletPopup () const |
bool | isOnScreenDisplay () const |
bool | isComboBox () const |
bool | isDNDIcon () const |
virtual bool | isLockScreen () const |
virtual bool | isInputMethod () const |
virtual bool | isOutline () const |
virtual bool | isInternal () const |
virtual bool | isPopupWindow () const |
virtual bool | isClient () const |
bool | isDeleted () const |
virtual bool | isUnmanaged () const |
bool | isLockScreenOverlay () const |
void | setLockScreenOverlay (bool allowed) |
QStringList | desktopIds () const |
QList< VirtualDesktop * > | desktops () const |
void | setDesktops (QList< VirtualDesktop * > desktops) |
void | enterDesktop (VirtualDesktop *desktop) |
void | leaveDesktop (VirtualDesktop *desktop) |
bool | isOnDesktop (VirtualDesktop *desktop) const |
bool | isOnCurrentDesktop () const |
bool | isOnAllDesktops () const |
void | setOnAllDesktops (bool set) |
virtual QStringList | activities () const |
bool | isOnActivity (const QString &activity) const |
bool | isOnCurrentActivity () const |
bool | isOnAllActivities () const |
void | setOnActivity (const QString &activity, bool enable) |
void | setOnActivities (const QStringList &newActivitiesList) |
void | setOnAllActivities (bool all) |
virtual void | updateActivities (bool includeTransients) |
void | blockActivityUpdates (bool b=true) |
virtual void | checkActivities () |
virtual QString | windowRole () const |
QString | resourceName () const |
QString | resourceClass () const |
QString | wmClientMachine (bool use_localhost) const |
ClientMachine * | clientMachine () const |
virtual bool | isLocalhost () const |
virtual pid_t | pid () const |
bool | readyForPainting () const |
void | setOpacity (qreal opacity) |
qreal | opacity () const |
virtual bool | setupCompositing () |
virtual void | finishCompositing () |
EffectWindow * | effectWindow () |
const EffectWindow * | effectWindow () const |
SurfaceItem * | surfaceItem () const |
WindowItem * | windowItem () const |
void | elevate (bool elevate) |
Shadow * | shadow () const |
void | updateShadow () |
bool | wantsShadowToBeRendered () const |
bool | skipsCloseAnimation () const |
void | setSkipCloseAnimation (bool set) |
SurfaceInterface * | surface () const |
void | setSurface (SurfaceInterface *surface) |
QMatrix4x4 | inputTransformation () const |
virtual bool | hitTest (const QPointF &point) const |
virtual bool | hasPopupGrab () const |
virtual void | popupDone () |
QUuid | internalId () const |
int | stackingOrder () const |
void | setStackingOrder (int order) |
bool | skipSwitcher () const |
void | setSkipSwitcher (bool set) |
bool | skipTaskbar () const |
void | setSkipTaskbar (bool set) |
void | setOriginalSkipTaskbar (bool set) |
bool | originalSkipTaskbar () const |
bool | skipPager () const |
void | setSkipPager (bool set) |
const QIcon & | icon () const |
bool | isActive () const |
void | setActive (bool) |
bool | keepAbove () const |
void | setKeepAbove (bool) |
bool | keepBelow () const |
void | setKeepBelow (bool) |
void | demandAttention (bool set=true) |
bool | isDemandingAttention () const |
void | cancelAutoRaise () |
virtual void | updateMouseGrab () |
QString | caption () const |
virtual QString | captionNormal () const =0 |
virtual QString | captionSuffix () const =0 |
virtual bool | isPlaceable () const |
virtual bool | isCloseable () const =0 |
bool | isShown () const |
bool | isHidden () const |
void | setHidden (bool hidden) |
bool | isHiddenByShowDesktop () const |
void | setHiddenByShowDesktop (bool hidden) |
virtual Window * | findModal (bool allow_itself=false)=0 |
virtual bool | isTransient () const |
virtual bool | hasTransientPlacementHint () const |
virtual QRectF | transientPlacement () const |
const Window * | transientFor () const |
Window * | transientFor () |
void | setTransientFor (Window *transientFor) |
virtual bool | hasTransient (const Window *transient, bool indirect) const |
const QList< Window * > & | transients () const |
virtual void | addTransient (Window *transient) |
virtual void | removeTransient (Window *transient) |
void | removeTransientFromList (Window *cl) |
virtual QList< Window * > | mainWindows () const |
QList< Window * > | allMainWindows () const |
bool | isSpecialWindow () const |
void | sendToOutput (Output *output) |
const QKeySequence & | shortcut () const |
void | setShortcut (const QString &cut) |
virtual QRectF | iconGeometry () const |
void | setMinimized (bool set) |
bool | isMinimized () const |
virtual bool | isMinimizable () const |
bool | isSuspended () const |
void | setSuspended (bool suspended) |
QRectF | fullscreenGeometryRestore () const |
virtual bool | isFullScreenable () const |
virtual bool | isFullScreen () const |
virtual bool | isRequestedFullScreen () const |
virtual void | setFullScreen (bool set) |
bool | wantsAdaptiveSync () const |
QRectF | geometryRestore () const |
virtual bool | isMaximizable () const |
virtual MaximizeMode | maximizeMode () const |
virtual MaximizeMode | requestedMaximizeMode () const |
virtual void | maximize (MaximizeMode mode) |
Q_INVOKABLE void | setMaximize (bool vertically, bool horizontally) |
QPalette | palette () |
const Decoration::DecorationPalette * | decorationPalette () |
virtual bool | isResizable () const =0 |
virtual bool | isMovable () const =0 |
virtual bool | isMovableAcrossScreens () const =0 |
bool | isShade () const |
ShadeMode | shadeMode () const |
void | setShade (bool set) |
void | setShade (ShadeMode mode) |
void | toggleShade () |
void | cancelShadeHoverTimer () |
virtual bool | isShadeable () const |
const WindowRules * | rules () const |
void | removeRule (Rules *r) |
void | setupWindowRules () |
void | finishWindowRules () |
void | evaluateWindowRules () |
virtual void | updateWindowRules (Rules::Types selection) |
virtual void | applyWindowRules () |
virtual bool | supportsWindowRules () const |
bool | wantsTabFocus () const |
virtual bool | takeFocus ()=0 |
virtual bool | wantsInput () const =0 |
virtual bool | dockWantsInput () const |
void | checkWorkspacePosition (QRectF oldGeometry=QRectF(), const VirtualDesktop *oldDesktop=nullptr) |
virtual xcb_timestamp_t | userTime () const |
void | keyPressEvent (uint key_code) |
virtual void | pointerEnterEvent (const QPointF &globalPos) |
virtual void | pointerLeaveEvent () |
void | packTo (qreal left, qreal top) |
Tile * | tile () const |
void | setTile (Tile *tile) |
void | setQuickTileMode (QuickTileMode mode, bool keyboard=false) |
QuickTileMode | quickTileMode () const |
Layer | layer () const |
void | updateLayer () |
bool | isInteractiveMove () const |
bool | isInteractiveResize () const |
CursorShape | cursor () const |
uint32_t | interactiveMoveResizeCount () const |
void | updateInteractiveMoveResize (const QPointF ¤tGlobalCursor) |
void | endInteractiveMoveResize () |
virtual StrutRect | strutRect (StrutArea area) const |
StrutRects | strutRects () const |
virtual bool | hasStrut () const |
void | setModal (bool modal) |
bool | isModal () const |
Options::MouseCommand | getMouseCommand (Qt::MouseButton button, bool *handled) const |
Options::MouseCommand | getWheelCommand (Qt::Orientation orientation, bool *handled) const |
bool | performMouseCommand (Options::MouseCommand, const QPointF &globalPos) |
Qt::Edge | titlebarPosition () const |
bool | titlebarPositionUnderMouse () const |
KDecoration2::Decoration * | decoration () |
const KDecoration2::Decoration * | decoration () const |
bool | isDecorated () const |
Decoration::DecoratedClientImpl * | decoratedClient () const |
void | setDecoratedClient (Decoration::DecoratedClientImpl *client) |
bool | decorationHasAlpha () const |
void | triggerDecorationRepaint () |
void | layoutDecorationRects (QRectF &left, QRectF &top, QRectF &right, QRectF &bottom) const |
void | processDecorationMove (const QPointF &localPos, const QPointF &globalPos) |
bool | processDecorationButtonPress (QMouseEvent *event, bool ignoreMenu=false) |
void | processDecorationButtonRelease (QMouseEvent *event) |
virtual void | invalidateDecoration () |
virtual bool | noBorder () const |
virtual void | setNoBorder (bool set) |
virtual bool | userCanSetNoBorder () const |
virtual void | checkNoBorder () |
virtual bool | providesContextHelp () const |
virtual void | showContextHelp () |
QRectF | virtualKeyboardGeometry () const |
virtual void | setVirtualKeyboardGeometry (const QRectF &geo) |
virtual void | showOnScreenEdge () |
QString | desktopFileName () const |
virtual void | killWindow ()=0 |
virtual void | destroyWindow ()=0 |
virtual bool | belongsToDesktop () const |
bool | hasApplicationMenu () const |
bool | applicationMenuActive () const |
void | setApplicationMenuActive (bool applicationMenuActive) |
QString | applicationMenuServiceName () const |
QString | applicationMenuObjectPath () const |
void | showApplicationMenu (int actionId) |
virtual QString | preferredColorScheme () const |
QString | colorScheme () const |
void | setColorScheme (const QString &colorScheme) |
bool | unresponsive () const |
virtual bool | groupTransient () const |
virtual const Group * | group () const |
virtual Group * | group () |
PlasmaWindowInterface * | windowManagementInterface () const |
void | setLastUsageSerial (quint32 serial) |
quint32 | lastUsageSerial () const |
void | refOffscreenRendering () |
void | unrefOffscreenRendering () |
Static Public Member Functions | |
template<class T , class U > | |
static T * | findInList (const QList< T * > &list, std::function< bool(const U *)> func) |
Finds the Window matching the condition expressed in func in list . | |
static QString | iconFromDesktopFile (const QString &fileName) |
static QString | findDesktopFile (const QString &fileName) |
static bool | belongToSameApplication (const Window *c1, const Window *c2, SameApplicationChecks checks=SameApplicationChecks()) |
Protected Types | |
enum class | MoveResizeMode : uint { None , Move = 0x1 , Resize = 0x2 , MoveResize = Move | Resize } |
Protected Slots | |
void | setReadyForPainting () |
Static Protected Attributes | |
static QHash< QString, std::weak_ptr< Decoration::DecorationPalette > > | s_palettes |
static std::shared_ptr< Decoration::DecorationPalette > | s_defaultPalette |
Friends | |
class | GeometryUpdatesBlocker |
|
strongprotected |
|
strong |
|
override |
Definition at line 105 of file window.cpp.
|
protected |
Definition at line 61 of file window.cpp.
|
protectedpure virtual |
Whether the window accepts focus. The difference to wantsInput is that the implementation should not check rules and return what the window effectively supports.
Implemented in KWin::InputPanelV1Window, KWin::InternalWindow, KWin::LayerShellV1Window, KWin::X11Window, KWin::XdgToplevelWindow, and KWin::XdgPopupWindow.
|
signal |
|
virtual |
Returns the list of activities the window window is on. if it's on all activities, the list will be empty. Don't use this, use isOnActivity() and friends (from class Window)
Reimplemented in KWin::X11Window.
Definition at line 3092 of file window.cpp.
|
signal |
|
virtual |
Definition at line 2319 of file window.cpp.
QList< Window * > Window::allMainWindows | ( | ) | const |
Definition at line 2264 of file window.cpp.
|
signal |
|
signal |
|
inline |
|
inline |
|
virtual |
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 4104 of file window.cpp.
|
inlineprotected |
|
protected |
Definition at line 685 of file window.cpp.
|
virtual |
Reimplemented in KWin::WaylandWindow, and KWin::X11Window.
Definition at line 623 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::LayerShellV1Window.
Definition at line 575 of file window.cpp.
|
protectedpure virtual |
Implemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.
|
static |
Definition at line 426 of file window.cpp.
void Window::blockActivityUpdates | ( | bool | b = true | ) |
Definition at line 3220 of file window.cpp.
|
protected |
Definition at line 1150 of file window.cpp.
|
protected |
Definition at line 2356 of file window.cpp.
|
protected |
Definition at line 2361 of file window.cpp.
|
protected |
Definition at line 2366 of file window.cpp.
|
protected |
Definition at line 2371 of file window.cpp.
|
inline |
|
signal |
This signal is emitted when the Window's buffer geometry changes.
void Window::cancelAutoRaise | ( | ) |
Definition at line 679 of file window.cpp.
void Window::cancelShadeHoverTimer | ( | ) |
Definition at line 941 of file window.cpp.
QString Window::caption | ( | ) | const |
Definition at line 3077 of file window.cpp.
|
signal |
|
pure virtual |
Implemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.
|
signal |
|
pure virtual |
Implemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.
|
inlinevirtual |
Refresh Window's cache of activites Called when activity daemon status changes
Reimplemented in KWin::X11Window.
|
virtual |
Reimplemented in KWin::X11Window.
Definition at line 4039 of file window.cpp.
|
protected |
Definition at line 3856 of file window.cpp.
|
protected |
Definition at line 2454 of file window.cpp.
|
protected |
Definition at line 1303 of file window.cpp.
void Window::checkWorkspacePosition | ( | QRectF | oldGeometry = QRectF(), |
const VirtualDesktop * | oldDesktop = nullptr ) |
Definition at line 3661 of file window.cpp.
|
protected |
Definition at line 4054 of file window.cpp.
|
inline |
|
signal |
This signal is emitted when the Window's client geometry has changed.
|
inline |
|
virtual |
Calculates the matching frame position for the given client position point
.
Reimplemented in KWin::X11Window.
Definition at line 3253 of file window.cpp.
QRectF Window::clientRectToFrameRect | ( | const QRectF & | rect | ) | const |
Calculates the matching frame rect for the given client rect rect
.
Notice that size constraints won't be applied.
Definition at line 3279 of file window.cpp.
|
virtual |
Calculates the matching frame size for the given client size size
.
Notice that size constraints won't be applied.
Default implementation returns the client size with frame margins being included.
Reimplemented in KWin::X11Window.
Definition at line 3265 of file window.cpp.
|
signal |
|
signal |
|
pure virtualslot |
Implemented in KWin::InputPanelV1Window, KWin::InternalWindow, KWin::LayerShellV1Window, KWin::XdgToplevelWindow, and KWin::XdgPopupWindow.
QString Window::colorScheme | ( | ) | const |
Definition at line 1023 of file window.cpp.
|
signal |
|
virtual |
Constrains the client size size
according to a set of the window's size hints.
Default implementation applies only minimum and maximum size constraints.
Reimplemented in KWin::X11Window.
Definition at line 3875 of file window.cpp.
QSizeF Window::constrainFrameSize | ( | const QSizeF & | size, |
SizeMode | mode = SizeModeAny ) const |
Constrains the frame size size
according to a set of the window's size hints.
Definition at line 3901 of file window.cpp.
|
protectedpure virtual |
Implemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.
|
inline |
|
signal |
Decoration::DecoratedClientImpl * Window::decoratedClient | ( | ) | const |
Definition at line 2811 of file window.cpp.
|
inline |
|
inline |
|
signal |
bool Window::decorationHasAlpha | ( | ) | const |
Definition at line 2674 of file window.cpp.
const Decoration::DecorationPalette * Window::decorationPalette | ( | ) |
Definition at line 1012 of file window.cpp.
void Window::demandAttention | ( | bool | set = true | ) |
Definition at line 708 of file window.cpp.
|
signal |
Emitted whenever the demands attention state changes.
|
signal |
QStringList Window::desktopIds | ( | ) | const |
Definition at line 830 of file window.cpp.
QList< VirtualDesktop * > Window::desktops | ( | ) | const |
Definition at line 825 of file window.cpp.
|
signal |
|
pure virtual |
Implemented in KWin::InputPanelV1Window, KWin::InternalWindow, KWin::LayerShellV1Window, KWin::X11Window, and KWin::XdgSurfaceWindow.
|
protected |
Definition at line 1975 of file window.cpp.
|
virtual |
Whether a dock window wants input.
By default KWin doesn't pass focus to a dock window unless a force activate request is provided.
This method allows to have dock windows take focus also through flags set on the window.
The default implementation returns false
.
Reimplemented in KWin::LayerShellV1Window, and KWin::XdgToplevelWindow.
Definition at line 2944 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::XdgToplevelWindow.
Definition at line 2441 of file window.cpp.
|
protectedvirtual |
Called during handling a resize. Implementing subclasses can use this method to perform windowing system specific syncing.
Default implementation does nothing.
Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 2450 of file window.cpp.
|
protectedvirtual |
Called from minimize and unminimize once the minimized value got updated, but before the changed signal is emitted.
Default implementation does nothig.
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 1002 of file window.cpp.
|
protected |
Definition at line 2578 of file window.cpp.
|
protectedvirtual |
Called from setActive once the active value got updated, but before the changed signal is emitted.
Default implementation does nothing.
Reimplemented in KWin::WaylandWindow, KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 536 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::X11Window.
Definition at line 722 of file window.cpp.
|
protectedvirtual |
Called from setDeskop once the desktop value got updated, but before the changed signal is emitted.
Default implementation does nothing.
Reimplemented in KWin::X11Window.
Definition at line 782 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::X11Window.
Definition at line 3573 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::X11Window.
Definition at line 3577 of file window.cpp.
|
protectedvirtual |
Called from setKeepAbove once the keepBelow value got updated, but before the changed signal is emitted.
Default implementation does nothing.
Reimplemented in KWin::X11Window.
Definition at line 645 of file window.cpp.
|
protectedvirtual |
Called from setKeepBelow once the keepBelow value got updated, but before the changed signal is emitted.
Default implementation does nothing.
Reimplemented in KWin::X11Window.
Definition at line 666 of file window.cpp.
|
protectedvirtual |
Called from setOnActivities just after the activity list member has been updated, but before updateActivities is called.
activityList | the new list of activities set on that window |
Default implementation does nothing
Reimplemented in KWin::X11Window.
Definition at line 3183 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::XdgToplevelWindow.
Definition at line 3569 of file window.cpp.
|
protectedvirtual |
Called from setShade() once the shadeMode value got updated, but before the changed signal is emitted.
Default implementation does nothing.
Reimplemented in KWin::X11Window.
Definition at line 904 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::X11Window.
Definition at line 460 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::X11Window.
Definition at line 489 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::X11Window.
Definition at line 485 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::XdgToplevelWindow.
Definition at line 4287 of file window.cpp.
|
protectedvirtual |
Called from startMoveResize.
Implementing classes should return false
if starting move resize should get aborted. In that case startMoveResize will also return false
.
Base implementation returns true
.
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 2436 of file window.cpp.
EffectWindow * Window::effectWindow | ( | ) |
Definition at line 279 of file window.cpp.
const EffectWindow * Window::effectWindow | ( | ) | const |
Definition at line 284 of file window.cpp.
|
inlineprotected |
void Window::elevate | ( | bool | elevate | ) |
Window will be temporarily painted as if being at the top of the stack. Only available if Compositor is active, if not active, this method is a no-op.
Definition at line 312 of file window.cpp.
void Window::endInteractiveMoveResize | ( | ) |
Ends move resize when all pointer buttons are up again.
Definition at line 2614 of file window.cpp.
|
protected |
Definition at line 1058 of file window.cpp.
|
protected |
Definition at line 3599 of file window.cpp.
void Window::enterDesktop | ( | VirtualDesktop * | desktop | ) |
Definition at line 786 of file window.cpp.
void Window::evaluateWindowRules | ( | ) |
Definition at line 4074 of file window.cpp.
|
static |
Definition at line 2976 of file window.cpp.
|
inlinestatic |
|
pure virtual |
Implemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.
|
virtual |
Reimplemented in KWin::X11Window.
Definition at line 223 of file window.cpp.
|
protected |
Definition at line 1262 of file window.cpp.
void Window::finishWindowRules | ( | ) |
Definition at line 4095 of file window.cpp.
|
inline |
|
signal |
This signal is emitted when the frame geometry is about to change. the new geometry is not known yet
|
signal |
This signal is emitted when the Window's frame geometry changes.
QMargins Window::frameMargins | ( | ) | const |
Returns the extents of the server-side decoration.
Note that the returned margins object will have all margins set to 0 if the window doesn't have a server-side decoration.
Definition at line 417 of file window.cpp.
|
virtual |
Calculates the matching client position for the given frame position point
.
Reimplemented in KWin::X11Window.
Definition at line 3248 of file window.cpp.
QRectF Window::frameRectToClientRect | ( | const QRectF & | rect | ) | const |
Calculates the matching client rect for the given frame rect rect
.
Notice that size constraints won't be applied.
Definition at line 3272 of file window.cpp.
|
virtual |
Calculates the matching client size for the given frame size size
.
Notice that size constraints won't be applied.
Default implementation returns the frame size with frame margins being excluded.
Reimplemented in KWin::X11Window.
Definition at line 3258 of file window.cpp.
|
signal |
QRectF Window::fullscreenGeometryRestore | ( | ) | const |
Definition at line 3908 of file window.cpp.
QRectF Window::geometryRestore | ( | ) | const |
Returns the geometry of the Window before it was maximized or quick tiled.
Definition at line 4007 of file window.cpp.
Options::MouseCommand Window::getMouseCommand | ( | Qt::MouseButton | button, |
bool * | handled ) const |
Determines the mouse command for the given button
in the current state.
The handled
argument specifies whether the button was handled or not. This value should be used to determine whether the mouse button should be passed to the Window or being filtered out.
Definition at line 1981 of file window.cpp.
Options::MouseCommand Window::getWheelCommand | ( | Qt::Orientation | orientation, |
bool * | handled ) const |
Definition at line 2009 of file window.cpp.
|
virtual |
Default implementation returns null
.
Mostly for X11 clients, holds the client group
Reimplemented in KWin::X11Window.
Definition at line 3243 of file window.cpp.
|
virtual |
Default implementation returns null
.
Mostly for X11 clients, holds the client group
Reimplemented in KWin::X11Window.
Definition at line 3238 of file window.cpp.
|
virtual |
Default implementation returns null
. Mostly intended for X11 clients, from EWMH:
* If the WM_TRANSIENT_FOR property is set to None or Root window, the window should be * treated as a transient for all other windows in the same group. It has been noted that this * is a slight ICCCM violation, but as this behavior is pretty standard for many toolkits and * window managers, and is extremely unlikely to break anything, it seems reasonable to document * it as standard. *
Reimplemented in KWin::X11Window.
Definition at line 3233 of file window.cpp.
void Window::growHorizontal | ( | ) |
Definition at line 751 of file placement.cpp.
void Window::growVertical | ( | ) |
Definition at line 808 of file placement.cpp.
|
protected |
Definition at line 1383 of file window.cpp.
|
protected |
Definition at line 1423 of file window.cpp.
|
protected |
Definition at line 1091 of file window.cpp.
bool Window::hasApplicationMenu | ( | ) | const |
Definition at line 3004 of file window.cpp.
|
signal |
bool KWin::Window::hasNETSupport | ( | ) | const |
|
inlinevirtual |
The window has a popup grab. This means that when it got mapped the parent window had an implicit (pointer) grab.
Normally this is only relevant for transient windows.
Once the popup grab ends (e.g. pointer press outside of any Window of the client), the method popupDone should be invoked.
The default implementation returns false
.
Reimplemented in KWin::InternalWindow, and KWin::XdgPopupWindow.
|
virtual |
Reimplemented in KWin::LayerShellV1Window, and KWin::X11Window.
Definition at line 1787 of file window.cpp.
|
virtual |
true
if transient is the transient_for window for this window, or recursively the transient_for window Reimplemented in KWin::X11Window.
Definition at line 2251 of file window.cpp.
|
virtual |
false
. Reimplemented in KWin::XdgPopupWindow.
Definition at line 2240 of file window.cpp.
|
signal |
|
signal |
|
virtual |
Returns true
if the window can accept input at the specified position point.
Reimplemented in KWin::InternalWindow.
Definition at line 381 of file window.cpp.
|
signal |
|
protected |
Definition at line 2971 of file window.cpp.
|
static |
Helper function to compute the icon out of an application id defined by fileName
Definition at line 2960 of file window.cpp.
|
virtual |
Reimplemented in KWin::X11Window.
Definition at line 2857 of file window.cpp.
|
inlineprotected |
QMatrix4x4 Window::inputTransformation | ( | ) | const |
Definition at line 374 of file window.cpp.
|
signal |
|
inlineprotected |
uint32_t Window::interactiveMoveResizeCount | ( | ) | const |
Definition at line 4167 of file window.cpp.
|
signal |
|
inlineprotected |
|
signal |
|
inlineprotected |
|
signal |
|
inline |
|
virtual |
Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 4020 of file window.cpp.
|
protected |
Definition at line 2797 of file window.cpp.
|
inlineprotected |
|
protected |
Definition at line 2343 of file window.cpp.
|
virtual |
Reimplemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.
Definition at line 302 of file window.cpp.
|
pure virtual |
bool Window::isDeleted | ( | ) | const |
Definition at line 540 of file window.cpp.
|
inlineprotected |
|
virtual |
Returns true
if the Window is currently being shown in full screen mode; otherwise false
.
A window in full screen mode occupies the entire screen with no window frame around it.
Default implementation returns false
.
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 3935 of file window.cpp.
|
virtual |
Returns true
if the Window can be shown in full screen mode; otherwise false
.
Default implementation returns false
.
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 3923 of file window.cpp.
bool Window::isHidden | ( | ) | const |
Definition at line 4237 of file window.cpp.
bool Window::isHiddenByShowDesktop | ( | ) | const |
Definition at line 4257 of file window.cpp.
|
inlinevirtual |
Reimplemented in KWin::InputPanelV1Window.
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlinevirtual |
Reimplemented in KWin::InternalWindow.
|
virtual |
Reimplemented in KWin::WaylandWindow.
Definition at line 409 of file window.cpp.
|
inlinevirtual |
Reimplemented in KWin::InternalWindow, and KWin::WaylandWindow.
bool Window::isLockScreenOverlay | ( | ) | const |
Definition at line 4181 of file window.cpp.
|
virtual |
Returns true
if the Window can be maximized; otherwise false
.
Default implementation returns false
.
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 3977 of file window.cpp.
|
virtual |
Returns true
if the Window can be minimized; otherwise false
.
Default implementation returns false
.
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 3967 of file window.cpp.
bool Window::isModal | ( | ) | const |
Definition at line 2285 of file window.cpp.
|
protected |
Definition at line 691 of file window.cpp.
|
pure virtual |
Returns whether the window is moveable or has a fixed position.
Implemented in KWin::InputPanelV1Window, KWin::InternalWindow, KWin::LayerShellV1Window, KWin::X11Window, KWin::XdgToplevelWindow, and KWin::XdgPopupWindow.
|
pure virtual |
Returns whether the window can be moved to another screen.
Implemented in KWin::InputPanelV1Window, KWin::InternalWindow, KWin::LayerShellV1Window, KWin::X11Window, KWin::XdgToplevelWindow, and KWin::XdgPopupWindow.
bool Window::isOnActiveOutput | ( | ) | const |
Definition at line 249 of file window.cpp.
|
inline |
bool Window::isOnCurrentActivity | ( | ) | const |
Definition at line 3097 of file window.cpp.
bool Window::isOnCurrentDesktop | ( | ) | const |
Definition at line 848 of file window.cpp.
bool Window::isOnDesktop | ( | VirtualDesktop * | desktop | ) | const |
Definition at line 843 of file window.cpp.
bool Window::isOnOutput | ( | Output * | output | ) | const |
Definition at line 254 of file window.cpp.
|
inlinevirtual |
Reimplemented in KWin::InternalWindow, and KWin::X11Window.
|
virtual |
Reimplemented in KWin::InputPanelV1Window, KWin::InternalWindow, KWin::LayerShellV1Window, and KWin::XdgToplevelWindow.
Definition at line 4049 of file window.cpp.
|
inlinevirtual |
Reimplemented in KWin::InternalWindow, and KWin::XdgPopupWindow.
|
virtual |
Reimplemented in KWin::XdgToplevelWindow.
Definition at line 3940 of file window.cpp.
|
pure virtual |
Returns whether the window is resizable or has a fixed size.
Implemented in KWin::InputPanelV1Window, KWin::InternalWindow, KWin::LayerShellV1Window, KWin::X11Window, KWin::XdgToplevelWindow, and KWin::XdgPopupWindow.
|
inline |
|
virtual |
Whether the Window can be shaded. Default implementation returns false
.
Reimplemented in KWin::X11Window.
Definition at line 858 of file window.cpp.
bool Window::isShown | ( | ) | const |
Definition at line 4232 of file window.cpp.
bool Window::isSpecialWindow | ( | ) | const |
Returns true for "special" windows and false for windows which are "normal" (normal=window which has a border, can be moved by the user, can be closed, etc.) true for Desktop, Dock, Splash, Override and TopMenu (and Toolbar??? - for now) false for Normal, Dialog, Utility and Menu (and Toolbar??? - not yet) TODO
Definition at line 702 of file window.cpp.
bool Window::isSuspended | ( | ) | const |
Definition at line 4271 of file window.cpp.
|
virtual |
Reimplemented in KWin::X11Window, KWin::XdgToplevelWindow, and KWin::XdgPopupWindow.
Definition at line 2290 of file window.cpp.
|
virtual |
Reimplemented in KWin::X11Window.
Definition at line 307 of file window.cpp.
|
inlineprotected |
|
protectedvirtual |
Whether a sync request is still pending. Default implementation returns false
.
Reimplemented in KWin::X11Window.
Definition at line 2445 of file window.cpp.
|
signal |
|
signal |
void Window::keepInArea | ( | QRectF | area, |
bool | partial = false ) |
Definition at line 1129 of file window.cpp.
QRectF Window::keepInArea | ( | QRectF | geometry, |
QRectF | area, | ||
bool | partial = false ) |
Definition at line 1096 of file window.cpp.
|
protected |
Definition at line 2934 of file window.cpp.
void Window::keyPressEvent | ( | uint | key_code | ) |
Definition at line 2531 of file window.cpp.
|
pure virtual |
Tries to terminate the process of this Window.
Implementing subclasses can perform a windowing system solution for terminating.
Implemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.
quint32 Window::lastUsageSerial | ( | ) | const |
Definition at line 4162 of file window.cpp.
Layer Window::layer | ( | ) | const |
Definition at line 552 of file window.cpp.
void Window::layoutDecorationRects | ( | QRectF & | left, |
QRectF & | top, | ||
QRectF & | right, | ||
QRectF & | bottom ) const |
Definition at line 2690 of file window.cpp.
void Window::leaveDesktop | ( | VirtualDesktop * | desktop | ) |
Definition at line 796 of file window.cpp.
|
protectedvirtual |
Leaves the move resize mode.
Inheriting classes must invoke the base implementation which ensures that the internal mode is properly ended.
Definition at line 2423 of file window.cpp.
|
signal |
|
virtual |
Reimplemented in KWin::X11Window.
Definition at line 2256 of file window.cpp.
QPointF Window::mapFromLocal | ( | const QPointF & | point | ) | const |
Definition at line 404 of file window.cpp.
QPointF Window::mapToFrame | ( | const QPointF & | point | ) | const |
Maps the specified point from the global screen coordinates to the frame coordinates.
Definition at line 394 of file window.cpp.
QPointF Window::mapToLocal | ( | const QPointF & | point | ) | const |
Maps the specified point from the global screen coordinates to the surface-local coordinates of the main surface. For X11 windows, this function maps the specified point from the global screen coordinates to the buffer-local coordinates.
Definition at line 399 of file window.cpp.
|
protected |
Definition at line 545 of file window.cpp.
|
virtual |
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 1167 of file window.cpp.
|
signal |
|
signal |
|
signal |
|
virtual |
Returns the currently applied maximize mode.
Default implementation returns MaximizeRestore.
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 3987 of file window.cpp.
|
virtual |
Returns the maximum client size, not the maximum frame size.
Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 1137 of file window.cpp.
|
protected |
Definition at line 4203 of file window.cpp.
|
signal |
|
signal |
|
virtual |
Returns the minimum client size, not the minimum frame size.
Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 1145 of file window.cpp.
|
signal |
|
protected |
Returns the interactive move resize gravity depending on the Decoration's section under mouse. If no decoration it returns Gravity::None.
Definition at line 2587 of file window.cpp.
void Window::move | ( | const QPointF & | point | ) |
Definition at line 3307 of file window.cpp.
void Window::moveResize | ( | const QRectF & | rect | ) |
Definition at line 3323 of file window.cpp.
|
signal |
|
signal |
QRectF Window::moveResizeGeometry | ( | ) | const |
Returns the last requested geometry. The returned value indicates the bounding geometry, meaning that the client can commit smaller window geometry if the window is resized.
The main difference between the frame geometry and the move-resize geometry is that the former specifies the current geometry while the latter specifies the next geometry.
Definition at line 3286 of file window.cpp.
|
protectedpure virtual |
Implemented in KWin::InputPanelV1Window, KWin::InternalWindow, KWin::LayerShellV1Window, KWin::X11Window, and KWin::XdgSurfaceWindow.
Output * Window::moveResizeOutput | ( | ) | const |
Returns the output where the last move or resize operation has occurred. The window is expected to land on this output after the move/resize operation completes.
Definition at line 3297 of file window.cpp.
|
protected |
Definition at line 3581 of file window.cpp.
|
virtual |
Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 4024 of file window.cpp.
qreal Window::opacity | ( | ) | const |
Definition at line 191 of file window.cpp.
|
signal |
Output * Window::output | ( | ) | const |
Definition at line 236 of file window.cpp.
|
signal |
void Window::packTo | ( | qreal | left, |
qreal | top ) |
Definition at line 680 of file placement.cpp.
QPalette Window::palette | ( | ) |
Definition at line 1006 of file window.cpp.
|
signal |
|
inlineprotected |
bool Window::performMouseCommand | ( | Options::MouseCommand | cmd, |
const QPointF & | globalPos ) |
Definition at line 2022 of file window.cpp.
|
virtual |
Reimplemented in KWin::WaylandWindow, and KWin::X11Window.
Definition at line 323 of file window.cpp.
|
virtual |
Reimplemented in KWin::InternalWindow.
Definition at line 2821 of file window.cpp.
|
virtual |
Reimplemented in KWin::InternalWindow.
Definition at line 2847 of file window.cpp.
|
inlinevirtual |
This method should be invoked for windows with a popup grab when the grab ends.
The default implementation does nothing.
Reimplemented in KWin::InternalWindow, and KWin::XdgPopupWindow.
|
virtual |
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 1018 of file window.cpp.
bool Window::processDecorationButtonPress | ( | QMouseEvent * | event, |
bool | ignoreMenu = false ) |
Definition at line 2720 of file window.cpp.
void Window::processDecorationButtonRelease | ( | QMouseEvent * | event | ) |
Definition at line 2773 of file window.cpp.
void Window::processDecorationMove | ( | const QPointF & | localPos, |
const QPointF & | globalPos ) |
Definition at line 2706 of file window.cpp.
|
virtual |
Returns whether the window provides context help or not. If it does, you should show a help menu item or a help button like '?' and call contextHelp() if this is invoked.
Default implementation returns false
.
Reimplemented in KWin::X11Window.
Definition at line 2802 of file window.cpp.
|
protected |
Definition at line 3354 of file window.cpp.
|
protected |
Definition at line 3397 of file window.cpp.
|
inline |
|
signal |
|
signal |
void Window::ref | ( | ) |
Definition at line 113 of file window.cpp.
void Window::refOffscreenRendering | ( | ) |
Definition at line 4186 of file window.cpp.
void Window::removeRule | ( | Rules * | r | ) |
Definition at line 4069 of file window.cpp.
|
virtual |
Definition at line 2329 of file window.cpp.
void Window::removeTransientFromList | ( | Window * | cl | ) |
Definition at line 2338 of file window.cpp.
|
virtual |
Returns the last requested maximize mode.
On X11, this method always matches maximizeMode(). On Wayland, it is asynchronous.
Default implementation matches maximizeMode().
Reimplemented in KWin::XdgToplevelWindow.
Definition at line 3999 of file window.cpp.
|
protected |
Definition at line 2520 of file window.cpp.
void Window::resize | ( | const QSizeF & | size | ) |
Definition at line 3315 of file window.cpp.
|
protectedvirtual |
Reimplemented in KWin::X11Window.
Definition at line 2573 of file window.cpp.
|
pure virtual |
Implemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.
|
inline |
void Window::sendToOutput | ( | Output * | output | ) |
Definition at line 3622 of file window.cpp.
void Window::setActive | ( | bool | act | ) |
Sets the window's active state to act.
This function does only change the visual appearance of the window, it does not change the focus setting. Use Workspace::activateClient() or Workspace::requestFocus() instead.
If a window receives or looses the focus, it calls setActive() on its own.
Definition at line 499 of file window.cpp.
void Window::setApplicationMenuActive | ( | bool | applicationMenuActive | ) |
Definition at line 3037 of file window.cpp.
void Window::setColorScheme | ( | const QString & | colorScheme | ) |
Definition at line 1028 of file window.cpp.
void Window::setDecoratedClient | ( | Decoration::DecoratedClientImpl * | client | ) |
Definition at line 2816 of file window.cpp.
|
protected |
Definition at line 2625 of file window.cpp.
|
protected |
Definition at line 2949 of file window.cpp.
void Window::setDesktops | ( | QList< VirtualDesktop * > | desktops | ) |
Definition at line 726 of file window.cpp.
|
protected |
Definition at line 3343 of file window.cpp.
|
protected |
Definition at line 3329 of file window.cpp.
|
virtual |
Asks the Window to enter or leave full screen mode.
Default implementation does nothing.
set | true if the Window has to be shown in full screen mode, otherwise false |
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 3952 of file window.cpp.
|
protected |
Definition at line 3913 of file window.cpp.
|
protected |
Sets the geometry of the Window before it was maximized or quick tiled to rect
.
Definition at line 4015 of file window.cpp.
void Window::setHidden | ( | bool | hidden | ) |
Definition at line 4242 of file window.cpp.
void Window::setHiddenByShowDesktop | ( | bool | hidden | ) |
Definition at line 4262 of file window.cpp.
|
protected |
Definition at line 493 of file window.cpp.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
void Window::setKeepAbove | ( | bool | b | ) |
Definition at line 628 of file window.cpp.
void Window::setKeepBelow | ( | bool | b | ) |
Definition at line 649 of file window.cpp.
|
protected |
Definition at line 2939 of file window.cpp.
void Window::setLastUsageSerial | ( | quint32 | serial | ) |
Sets the last user usage serial of the surface as serial
Definition at line 4155 of file window.cpp.
void Window::setLockScreenOverlay | ( | bool | allowed | ) |
Definition at line 4172 of file window.cpp.
void Window::setMaximize | ( | bool | vertically, |
bool | horizontally ) |
Sets the maximization according to vertically
and horizontally
.
Definition at line 1172 of file window.cpp.
void Window::setMinimized | ( | bool | set | ) |
Definition at line 984 of file window.cpp.
void Window::setModal | ( | bool | modal | ) |
Definition at line 2273 of file window.cpp.
|
protected |
Definition at line 3291 of file window.cpp.
void Window::setMoveResizeOutput | ( | Output * | output | ) |
Definition at line 3302 of file window.cpp.
|
virtual |
Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 4034 of file window.cpp.
void Window::setOnActivities | ( | const QStringList & | newActivitiesList | ) |
set exactly which activities this window is on
Definition at line 3144 of file window.cpp.
void Window::setOnActivity | ( | const QString & | activity, |
bool | enable ) |
Sets whether the window is on activity
. If you remove it from its last activity, then it's on all activities.
Note: If it was on all activities and you try to remove it from one, nothing will happen; I don't think that's an important enough use case to handle here.
Definition at line 3116 of file window.cpp.
void Window::setOnAllActivities | ( | bool | all | ) |
if all
is true, sets on all activities. if it's false, sets it to only be on the current activity
Definition at line 3191 of file window.cpp.
void Window::setOnAllDesktops | ( | bool | set | ) |
Definition at line 813 of file window.cpp.
void Window::setOpacity | ( | qreal | opacity | ) |
Definition at line 196 of file window.cpp.
void Window::setOriginalSkipTaskbar | ( | bool | set | ) |
Definition at line 479 of file window.cpp.
void Window::setOutput | ( | Output * | output | ) |
Definition at line 241 of file window.cpp.
|
inlineprotected |
void Window::setQuickTileMode | ( | QuickTileMode | mode, |
bool | keyboard = false ) |
Sets the quick tile mode ("snap") of this window. This will also handle preserving and restoring of window geometry as necessary.
mode | The tile mode (left/right) to give this window. |
keyboard | Defines whether to take keyboard cursor into account. |
Definition at line 3411 of file window.cpp.
|
protectedslot |
Definition at line 228 of file window.cpp.
|
protected |
Definition at line 184 of file window.cpp.
void Window::setShade | ( | bool | set | ) |
Definition at line 863 of file window.cpp.
void Window::setShade | ( | ShadeMode | mode | ) |
Definition at line 868 of file window.cpp.
void Window::setShortcut | ( | const QString & | cut | ) |
Definition at line 1770 of file useractions.cpp.
|
protectedvirtual |
Definition at line 1834 of file useractions.cpp.
void Window::setSkipCloseAnimation | ( | bool | set | ) |
Definition at line 333 of file window.cpp.
void Window::setSkipPager | ( | bool | set | ) |
Definition at line 448 of file window.cpp.
void Window::setSkipSwitcher | ( | bool | set | ) |
Definition at line 436 of file window.cpp.
void Window::setSkipTaskbar | ( | bool | set | ) |
Definition at line 464 of file window.cpp.
void Window::setStackingOrder | ( | int | order | ) |
Definition at line 361 of file window.cpp.
void Window::setSurface | ( | SurfaceInterface * | surface | ) |
Definition at line 347 of file window.cpp.
void Window::setSuspended | ( | bool | suspended | ) |
Definition at line 4276 of file window.cpp.
void Window::setTile | ( | Tile * | tile | ) |
Definition at line 3547 of file window.cpp.
void Window::setTransientFor | ( | Window * | transientFor | ) |
Definition at line 2217 of file window.cpp.
|
protected |
Definition at line 3060 of file window.cpp.
|
inlineprotected |
|
virtual |
Reimplemented in KWin::X11Window.
Definition at line 207 of file window.cpp.
|
protected |
Definition at line 1792 of file window.cpp.
void Window::setupWindowRules | ( | ) |
Definition at line 4080 of file window.cpp.
|
virtual |
Sets the geometry of the virtual keyboard, The window may resize itself in order to make space for the keybaord This geometry is in global coordinates
Reimplemented in KWin::LayerShellV1Window.
Definition at line 2900 of file window.cpp.
|
signal |
|
signal |
|
protected |
Definition at line 908 of file window.cpp.
ShadeMode Window::shadeMode | ( | ) | const |
Definition at line 853 of file window.cpp.
|
protected |
Definition at line 914 of file window.cpp.
Shadow * Window::shadow | ( | ) | const |
Returns the Shadow associated with this Window or null
if it has no shadow.
Definition at line 259 of file window.cpp.
|
signal |
Emitted whenever the window's shadow changes.
|
inline |
|
protected |
Definition at line 3069 of file window.cpp.
void Window::showApplicationMenu | ( | int | actionId | ) |
Request showing the application menu bar
actionId | The DBus menu ID of the action that should be highlighted, 0 for the root menu |
Definition at line 3045 of file window.cpp.
|
virtual |
Invokes context help on the window. Only works if the window actually provides context help.
Default implementation does nothing.
Reimplemented in KWin::X11Window.
Definition at line 2807 of file window.cpp.
|
virtual |
Restores the Window after it had been hidden due to show on screen edge functionality. The Window also gets raised (e.g. Panel mode windows can cover) and the Window gets informed in a window specific way that it is shown and raised again.
Reimplemented in KWin::LayerShellV1Window, and KWin::X11Window.
Definition at line 4044 of file window.cpp.
void Window::shrinkHorizontal | ( | ) |
Definition at line 784 of file placement.cpp.
void Window::shrinkVertical | ( | ) |
Definition at line 839 of file placement.cpp.
|
signal |
|
signal |
bool Window::skipsCloseAnimation | ( | ) | const |
Definition at line 328 of file window.cpp.
|
signal |
|
signal |
int Window::stackingOrder | ( | ) | const |
Definition at line 356 of file window.cpp.
|
signal |
|
protected |
Definition at line 670 of file window.cpp.
|
protected |
Definition at line 2792 of file window.cpp.
|
protected |
Definition at line 1356 of file window.cpp.
|
protected |
Definition at line 1185 of file window.cpp.
|
protected |
Definition at line 920 of file window.cpp.
|
protected |
Definition at line 931 of file window.cpp.
|
protected |
Definition at line 1372 of file window.cpp.
Reimplemented in KWin::LayerShellV1Window, and KWin::X11Window.
Definition at line 1764 of file window.cpp.
StrutRects Window::strutRects | ( | ) | const |
Definition at line 1769 of file window.cpp.
|
virtual |
Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 4064 of file window.cpp.
SurfaceInterface * Window::surface | ( | ) | const |
Definition at line 342 of file window.cpp.
|
signal |
Emitted whenever the Surface for this Window changes.
SurfaceItem * Window::surfaceItem | ( | ) | const |
Definition at line 289 of file window.cpp.
|
pure virtual |
Tile * Window::tile | ( | ) | const |
Definition at line 3564 of file window.cpp.
|
signal |
This signal is emitted when associated tile has changed, including from and to none
Qt::Edge Window::titlebarPosition | ( | ) | const |
Definition at line 953 of file window.cpp.
bool Window::titlebarPositionUnderMouse | ( | ) | const |
Definition at line 959 of file window.cpp.
void Window::toggleShade | ( | ) |
Definition at line 947 of file window.cpp.
|
signal |
Window * KWin::Window::transientFor | ( | ) |
const Window * Window::transientFor | ( | ) | const |
Definition at line 2230 of file window.cpp.
|
virtual |
Only valid id hasTransientPlacementHint is true
Reimplemented in KWin::XdgPopupWindow.
Definition at line 2245 of file window.cpp.
|
inline |
void Window::triggerDecorationRepaint | ( | ) |
Definition at line 2683 of file window.cpp.
void Window::unref | ( | ) |
Definition at line 118 of file window.cpp.
void Window::unrefOffscreenRendering | ( | ) |
Definition at line 4194 of file window.cpp.
bool Window::unresponsive | ( | ) | const |
Definition at line 3055 of file window.cpp.
|
signal |
|
virtual |
update after activities changed
Reimplemented in KWin::X11Window.
Definition at line 3208 of file window.cpp.
|
protected |
Definition at line 3023 of file window.cpp.
|
protected |
Definition at line 3009 of file window.cpp.
|
protectedpure virtual |
Implemented in KWin::InternalWindow, and KWin::WaylandWindow.
|
protected |
Definition at line 1053 of file window.cpp.
|
protected |
Sets an appropriate cursor shape for the logical mouse position.
Definition at line 2376 of file window.cpp.
|
protected |
Definition at line 2658 of file window.cpp.
|
protected |
Definition at line 3382 of file window.cpp.
void Window::updateInteractiveMoveResize | ( | const QPointF & | currentGlobalCursor | ) |
Definition at line 1378 of file window.cpp.
void Window::updateLayer | ( | ) |
Definition at line 560 of file window.cpp.
|
virtual |
Reimplemented in KWin::X11Window.
Definition at line 422 of file window.cpp.
|
inlineprotected |
void Window::updateShadow | ( | ) |
Updates the Shadow associated with this Window from X11 Property. Call this method when the Property changes or Compositing is started.
Definition at line 264 of file window.cpp.
|
virtual |
Reimplemented in KWin::X11Window.
Definition at line 4087 of file window.cpp.
|
virtual |
Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.
Definition at line 4029 of file window.cpp.
|
virtual |
Reimplemented in KWin::X11Window.
Definition at line 431 of file window.cpp.
QRectF Window::virtualKeyboardGeometry | ( | ) | const |
Definition at line 2895 of file window.cpp.
QRectF Window::visibleGeometry | ( | ) | const |
Returns a rectangle that the window occupies on the screen, including drop-shadows.
Definition at line 159 of file window.cpp.
|
signal |
This signal is emitted when the visible geometry has changed.
bool Window::wantsAdaptiveSync | ( | ) | const |
Definition at line 3957 of file window.cpp.
|
pure virtual |
bool Window::wantsShadowToBeRendered | ( | ) | const |
Whether the Window currently wants the shadow to be rendered.
Definition at line 297 of file window.cpp.
bool Window::wantsTabFocus | ( | ) | const |
Definition at line 697 of file window.cpp.
|
signal |
Emitted whenever the window class name or resource name of the window changes.
|
signal |
|
inline |
|
inline |
|
virtual |
Reimplemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.
Definition at line 369 of file window.cpp.
|
signal |
Emitted whenever the window role of the window changes.
|
signal |
|
pure virtual |
Implemented in KWin::InputPanelV1Window, KWin::InternalWindow, KWin::LayerShellV1Window, KWin::X11Window, and KWin::XdgSurfaceWindow.
QString Window::wmClientMachine | ( | bool | use_localhost | ) | const |
Returns client machine for this window, taken either from its window or from the leader window.
Definition at line 171 of file window.cpp.
|
friend |
QPointer<Decoration::DecoratedClientImpl> KWin::Window::client |
CursorShape KWin::Window::cursor = Qt::ArrowCursor |
std::shared_ptr<KDecoration2::Decoration> KWin::Window::decoration |
Gravity KWin::Window::gravity = Gravity::None |
MaximizeMode KWin::Window::initialMaximizeMode |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
struct { ... } KWin::Window::m_decoration |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
struct { ... } KWin::Window::m_interactiveMoveResize |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
read |
Whether this Window is active or not. Use Workspace::activateWindow() to activate a Window.
|
readwrite |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
The color scheme set on this window Absolute file path, or name of palette in the user's config directory following KColorSchemes format. An empty string indicates the default palette from kdeglobals is used.
|
read |
Returns whether the window is a combobox popup. See _NET_WM_WINDOW_TYPE_COMBO at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
|
read |
|
read |
|
readwrite |
Whether window state _NET_WM_STATE_DEMANDS_ATTENTION is set. This state indicates that some action in or with the window happened. For example, it may be set by the Window Manager if the window requested activation but the Window Manager refused it, or the application may set it if it finished some work. This state may be set by both the Window and the Window Manager. It should be unset by the Window Manager when it decides the window got the required attention (usually, that it got activated).
|
read |
The desktop file name of the application this Window belongs to.
This is either the base name without full path and without file extension of the desktop file for the window's application (e.g. "org.kde.foo").
The application's desktop file name can also be the full path to the desktop file (e.g. "/opt/kde/share/org.kde.foo.desktop") in case it's not in a standard location.
|
readwrite |
|
read |
Returns whether the window is a desktop background window (the one with wallpaper). See _NET_WM_WINDOW_TYPE_DESKTOP at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
Returns whether the window is a dialog window. See _NET_WM_WINDOW_TYPE_DIALOG at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
Returns whether the window is a Drag&Drop icon. See _NET_WM_WINDOW_TYPE_DND at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
Returns whether the window is a dock (i.e. a panel). See _NET_WM_WINDOW_TYPE_DOCK at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
Returns whether the window is a dropdown menu (i.e. a popup directly or indirectly open from the applications menubar). See _NET_WM_WINDOW_TYPE_DROPDOWN_MENU at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
readwrite |
|
readwrite |
|
read |
|
read |
|
read |
|
read |
|
read |
The optional geometry representing the minimized Window in e.g a taskbar. See _NET_WM_ICON_GEOMETRY at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html . The value is evaluated each time the getter is called. Because of that no changed signal is provided.
|
read |
|
read |
|
readwrite |
|
readwrite |
|
read |
|
read |
|
read |
|
read |
|
read |
Returns whether the window is a torn-off menu. See _NET_WM_WINDOW_TYPE_MENU at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
|
readwrite |
|
read |
|
read |
|
read |
|
read |
Whether the Window is moveable. Even if it is not moveable, it might be possible to move it to another screen. The property is evaluated each time it is invoked. Because of that there is no notify signal.
|
read |
|
readwrite |
Whether the window has a decoration or not. This property is not allowed to be set by applications themselves. The decision whether a window has a border or not belongs to the window manager. If this property gets abused by application developers, it will be removed again.
|
read |
Returns whether the window is a "normal" window, i.e. an application or any other window for which none of the specialized window types fit. See _NET_WM_WINDOW_TYPE_NORMAL at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
Returns whether the window is a window with a notification. See _NET_WM_WINDOW_TYPE_NOTIFICATION at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
readwrite |
|
read |
|
read |
|
read |
|
read |
|
read |
Returns whether the window is a popup menu (that is not a torn-off or dropdown menu). See _NET_WM_WINDOW_TYPE_POPUP_MENU at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
|
read |
|
read |
|
read |
|
read |
|
readwrite |
|
read |
|
read |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
read |
Returns whether the window is any of special windows types (desktop, dock, splash, ...), i.e. window types that usually don't have a window frame and the user does not use window management (moving, raising,...) on them. The value is evaluated each time the getter is called. Because of that no changed signal is provided.
|
read |
Returns whether the window is a splashscreen. Note that many (especially older) applications do not support marking their splash windows with this type. See _NET_WM_WINDOW_TYPE_SPLASH at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
|
readwrite |
|
read |
Returns whether the window is a standalone (detached) toolbar window. See _NET_WM_WINDOW_TYPE_TOOLBAR at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
Returns whether the window is a tooltip. See _NET_WM_WINDOW_TYPE_TOOLTIP at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
|
read |
|
read |
|
read |
Returns whether the window is a utility window, such as a tool window. See _NET_WM_WINDOW_TYPE_UTILITY at https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
|
read |
|
read |
Returns the NETWM window type See https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .
|
read |
|
read |