KWin
Loading...
Searching...
No Matches
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | Friends | List of all members
KWin::Window Class Referenceabstract

#include <window.h>

Inheritance diagram for KWin::Window:
KWin::InternalWindow KWin::WaylandWindow KWin::X11Window KWin::InputPanelV1Window KWin::LayerShellV1Window KWin::XdgSurfaceWindow KWin::XdgPopupWindow KWin::XdgToplevelWindow

Public Types

enum  SizeMode { SizeModeAny , SizeModeFixedW , SizeModeFixedH , SizeModeMax }
 
enum class  SameApplicationCheck { RelaxedForActive = 1 << 0 , AllowCrossProcesses = 1 << 1 }
 

Public Slots

virtual void closeWindow ()=0
 

Signals

void stackingOrderChanged ()
 
void shadeChanged ()
 
void opacityChanged (KWin::Window *window, qreal oldOpacity)
 
void damaged (KWin::Window *window)
 
void inputTransformationChanged ()
 
void closed ()
 
void windowShown (KWin::Window *window)
 
void windowHidden (KWin::Window *window)
 
void outputChanged ()
 
void skipCloseAnimationChanged ()
 
void windowRoleChanged ()
 
void windowClassChanged ()
 
void surfaceChanged ()
 
void shadowChanged ()
 
void bufferGeometryChanged (const QRectF &oldGeometry)
 
void frameGeometryChanged (const QRectF &oldGeometry)
 
void clientGeometryChanged (const QRectF &oldGeometry)
 
void frameGeometryAboutToChange ()
 
void visibleGeometryChanged ()
 
void tileChanged (KWin::Tile *tile)
 
void fullScreenChanged ()
 
void skipTaskbarChanged ()
 
void skipPagerChanged ()
 
void skipSwitcherChanged ()
 
void iconChanged ()
 
void activeChanged ()
 
void keepAboveChanged (bool)
 
void keepBelowChanged (bool)
 
void demandsAttentionChanged ()
 
void desktopsChanged ()
 
void activitiesChanged ()
 
void minimizedChanged ()
 
void paletteChanged (const QPalette &p)
 
void colorSchemeChanged ()
 
void captionChanged ()
 
void captionNormalChanged ()
 
void maximizedAboutToChange (MaximizeMode mode)
 
void maximizedChanged ()
 
void transientChanged ()
 
void modalChanged ()
 
void quickTileModeChanged ()
 
void moveResizedChanged ()
 
void moveResizeCursorChanged (CursorShape)
 
void interactiveMoveResizeStarted ()
 
void interactiveMoveResizeStepped (const QRectF &geometry)
 
void interactiveMoveResizeFinished ()
 
void closeableChanged (bool)
 
void minimizeableChanged (bool)
 
void shadeableChanged (bool)
 
void maximizeableChanged (bool)
 
void desktopFileNameChanged ()
 
void applicationMenuChanged ()
 
void hasApplicationMenuChanged (bool)
 
void applicationMenuActiveChanged (bool)
 
void unresponsiveChanged (bool)
 
void decorationChanged ()
 
void hiddenChanged ()
 
void hiddenByShowDesktopChanged ()
 
void lockScreenOverlayChanged ()
 
void readyForPaintingChanged ()
 

Public Member Functions

 ~Window () override
 
void ref ()
 
void unref ()
 
QRectF moveResizeGeometry () const
 
OutputmoveResizeOutput () 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
 
Outputoutput () 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
 
ClientMachineclientMachine () 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 ()
 
EffectWindoweffectWindow ()
 
const EffectWindoweffectWindow () const
 
SurfaceItemsurfaceItem () const
 
WindowItemwindowItem () const
 
void elevate (bool elevate)
 
Shadowshadow () const
 
void updateShadow ()
 
bool wantsShadowToBeRendered () const
 
bool skipsCloseAnimation () const
 
void setSkipCloseAnimation (bool set)
 
SurfaceInterfacesurface () 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 WindowfindModal (bool allow_itself=false)=0
 
virtual bool isTransient () const
 
virtual bool hasTransientPlacementHint () const
 
virtual QRectF transientPlacement () const
 
const WindowtransientFor () const
 
WindowtransientFor ()
 
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::DecorationPalettedecorationPalette ()
 
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 WindowRulesrules () 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)
 
Tiletile () 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 &currentGlobalCursor)
 
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::DecoratedClientImpldecoratedClient () 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 Groupgroup () const
 
virtual Groupgroup ()
 
PlasmaWindowInterfacewindowManagementInterface () 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 ()
 

Protected Member Functions

 Window ()
 
virtual std::unique_ptr< WindowItemcreateItem (Scene *scene)=0
 
void setResourceClass (const QString &name, const QString &className=QString())
 
void setIcon (const QIcon &icon)
 
void startAutoRaise ()
 
void autoRaise ()
 
bool isMostRecentlyRaised () const
 
void markAsDeleted ()
 
virtual bool acceptsFocus () const =0
 
virtual void doSetActive ()
 
virtual void doSetKeepAbove ()
 
virtual void doSetKeepBelow ()
 
virtual void doSetShade (ShadeMode previousShadeMode)
 
virtual void doSetDesktop ()
 
virtual void doSetOnActivities (const QStringList &activityList)
 
virtual void doMinimize ()
 
virtual bool belongsToSameApplication (const Window *other, SameApplicationChecks checks) const =0
 
virtual void doSetSkipTaskbar ()
 
virtual void doSetSkipPager ()
 
virtual void doSetSkipSwitcher ()
 
virtual void doSetDemandsAttention ()
 
virtual void doSetQuickTileMode ()
 
virtual void doSetHidden ()
 
virtual void doSetHiddenByShowDesktop ()
 
virtual void doSetSuspended ()
 
void setupWindowManagementInterface ()
 
void destroyWindowManagementInterface ()
 
void updateColorScheme ()
 
void ensurePalette ()
 
void handlePaletteChange ()
 
virtual Layer belongsToLayer () const
 
bool isActiveFullScreen () const
 
void setElectricBorderMode (QuickTileMode mode)
 
QuickTileMode electricBorderMode () const
 
void setElectricBorderMaximizing (bool maximizing)
 
bool isElectricBorderMaximizing () const
 
void updateElectricGeometryRestore ()
 
QRectF quickTileGeometryRestore () const
 
QRectF quickTileGeometry (QuickTileMode mode, const QPointF &pos) const
 
void updateQuickTileMode (QuickTileMode newMode)
 
void checkOffscreenPosition (QRectF *geom, const QRectF &screenArea)
 
int borderLeft () const
 
int borderRight () const
 
int borderTop () const
 
int borderBottom () const
 
void setGeometryRestore (const QRectF &rect)
 
void setFullscreenGeometryRestore (const QRectF &geom)
 
void blockGeometryUpdates (bool block)
 
void blockGeometryUpdates ()
 
void unblockGeometryUpdates ()
 
bool areGeometryUpdatesBlocked () const
 
MoveResizeMode pendingMoveResizeMode () const
 
void setPendingMoveResizeMode (MoveResizeMode mode)
 
virtual void moveResizeInternal (const QRectF &rect, MoveResizeMode mode)=0
 
bool isInteractiveMoveResize () const
 
void setInteractiveMoveResize (bool enabled)
 
bool isUnrestrictedInteractiveMoveResize () const
 
void setUnrestrictedInteractiveMoveResize (bool set)
 
QPointF interactiveMoveOffset () const
 
void setInteractiveMoveOffset (const QPointF &offset)
 
QPointF invertedInteractiveMoveOffset () const
 
void setInvertedInteractiveMoveOffset (const QPointF &offset)
 
QRectF initialInteractiveMoveResizeGeometry () const
 
void setMoveResizeGeometry (const QRectF &geo)
 
Gravity interactiveMoveResizeGravity () const
 
void setInteractiveMoveResizeGravity (Gravity gravity)
 
bool isInteractiveMoveResizePointerButtonDown () const
 
void setInteractiveMoveResizePointerButtonDown (bool down)
 
OutputinteractiveMoveResizeStartOutput () const
 
void checkUnrestrictedInteractiveMoveResize ()
 
void updateCursor ()
 
void startDelayedInteractiveMoveResize ()
 
void stopDelayedInteractiveMoveResize ()
 
bool startInteractiveMoveResize ()
 
virtual bool doStartInteractiveMoveResize ()
 
virtual void doFinishInteractiveMoveResize ()
 
void finishInteractiveMoveResize (bool cancel)
 
virtual void leaveInteractiveMoveResize ()
 
void checkQuickTilingMaximizationZones (int xroot, int yroot)
 
void resetQuickTilingMaximizationZones ()
 
virtual bool isWaitingForInteractiveMoveResizeSync () const
 
virtual void doInteractiveResizeSync (const QRectF &rect)
 
void handleInteractiveMoveResize (qreal x, qreal y, qreal x_root, qreal y_root)
 
void handleInteractiveMoveResize (const QPointF &local, const QPointF &global)
 
void dontInteractiveMoveResize ()
 
virtual QSizeF resizeIncrements () const
 
Gravity mouseGravity () const
 
void setDecoration (std::shared_ptr< KDecoration2::Decoration > decoration)
 
void startDecorationDoubleClickTimer ()
 
void invalidateDecorationDoubleClickTimer ()
 
void updateDecorationInputShape ()
 
void setDesktopFileName (const QString &name)
 
QString iconFromDesktopFile () const
 
void updateApplicationMenuServiceName (const QString &serviceName)
 
void updateApplicationMenuObjectPath (const QString &objectPath)
 
void setUnresponsive (bool unresponsive)
 
virtual void setShortcutInternal ()
 
QString shortcutCaptionSuffix () const
 
virtual void updateCaption ()=0
 
void startShadeHoverTimer ()
 
void startShadeUnhoverTimer ()
 
void shadeHover ()
 
void shadeUnhover ()
 
QRectF keyboardGeometryRestore () const
 
void setKeyboardGeometryRestore (const QRectF &geom)
 
QRectF moveToArea (const QRectF &geometry, const QRectF &oldArea, const QRectF &newArea)
 
QRectF ensureSpecialStateGeometry (const QRectF &geometry)
 
void cleanTabBox ()
 
void maybeSendFrameCallback ()
 

Protected Attributes

Outputm_output = nullptr
 
QRectF m_frameGeometry
 
QRectF m_clientGeometry
 
QRectF m_bufferGeometry
 
bool ready_for_painting
 
bool m_hidden = false
 
bool m_hiddenByShowDesktop = false
 
int m_refCount = 1
 
QUuid m_internalId
 
std::unique_ptr< WindowItemm_windowItem
 
std::unique_ptr< Shadowm_shadow
 
QString resource_name
 
QString resource_class
 
ClientMachinem_clientMachine
 
bool m_skipCloseAnimation
 
QPointer< SurfaceInterfacem_surface
 
qreal m_opacity = 1.0
 
int m_stackingOrder = 0
 
bool m_skipTaskbar = false
 
bool m_originalSkipTaskbar = false
 
bool m_skipPager = false
 
bool m_skipSwitcher = false
 
QIcon m_icon
 
bool m_active = false
 
bool m_deleted = false
 
bool m_keepAbove = false
 
bool m_keepBelow = false
 
bool m_demandsAttention = false
 
bool m_minimized = false
 
bool m_suspended = false
 
QTimer * m_autoRaiseTimer = nullptr
 
QTimer * m_shadeHoverTimer = nullptr
 
ShadeMode m_shadeMode = ShadeNone
 
QList< VirtualDesktop * > m_desktops
 
QStringList m_activityList
 
int m_activityUpdatesBlocked = 0
 
bool m_blockedActivityUpdatesRequireTransients = false
 
QString m_colorScheme
 
std::shared_ptr< Decoration::DecorationPalettem_palette
 
PlasmaWindowInterfacem_windowManagementInterface = nullptr
 
Windowm_transientFor = nullptr
 
QList< Window * > m_transients
 
bool m_modal = false
 
Layer m_layer = UnknownLayer
 
QPointer< Tilem_tile
 
QuickTileMode m_electricMode = QuickTileFlag::None
 
QRectF m_electricGeometryRestore
 
bool m_electricMaximizing = false
 
int m_quickTileMode = int(QuickTileFlag::None)
 
QTimer * m_electricMaximizingDelay = nullptr
 
int m_blockGeometryUpdates = 0
 
MoveResizeMode m_pendingMoveResizeMode = MoveResizeMode::None
 
Outputm_moveResizeOutput
 
QRectF m_moveResizeGeometry
 
QRectF m_keyboardGeometryRestore
 
QRectF m_maximizeGeometryRestore
 
QRectF m_fullscreenGeometryRestore
 
QRectF m_virtualKeyboardGeometry
 
struct { 
 
   bool   enabled = false 
 
   bool   unrestricted = false 
 
   QPointF   offset 
 
   QPointF   invertedOffset 
 
   QRectF   initialGeometry 
 
   QRectF   initialGeometryRestore 
 
   Gravity   gravity = Gravity::None 
 
   bool   buttonDown = false 
 
   CursorShape   cursor = Qt::ArrowCursor 
 
   Output *   startOutput = nullptr 
 
   QTimer *   delayedTimer = nullptr 
 
   uint32_t   counter = 0 
 
   MaximizeMode   initialMaximizeMode 
 
   QuickTileMode   initialQuickTileMode 
 
m_interactiveMoveResize 
 
struct { 
 
   std::shared_ptr< KDecoration2::Decoration >   decoration 
 
   QPointer< Decoration::DecoratedClientImpl >   client 
 
   QElapsedTimer   doubleClickTimer 
 
   QRegion   inputRegion 
 
m_decoration 
 
QString m_desktopFileName
 
bool m_applicationMenuActive = false
 
QString m_applicationMenuServiceName
 
QString m_applicationMenuObjectPath
 
bool m_unresponsive = false
 
QKeySequence _shortcut
 
WindowRules m_rules
 
quint32 m_lastUsageSerial = 0
 
bool m_lockScreenOverlay = false
 
uint32_t m_offscreenRenderCount = 0
 
QTimer m_offscreenFramecallbackTimer
 

Static Protected Attributes

static QHash< QString, std::weak_ptr< Decoration::DecorationPalette > > s_palettes
 
static std::shared_ptr< Decoration::DecorationPalettes_defaultPalette
 

Properties

QRectF bufferGeometry
 
QRectF clientGeometry
 
QPointF pos
 
QSizeF size
 
qreal x
 
qreal y
 
qreal width
 
qreal height
 
qreal opacity
 
KWin::Outputoutput
 
QRectF rect
 
QString resourceName
 
QString resourceClass
 
QString windowRole
 
bool desktopWindow
 
bool dock
 
bool toolbar
 
bool menu
 
bool normalWindow
 
bool dialog
 
bool splash
 
bool utility
 
bool dropdownMenu
 
bool popupMenu
 
bool tooltip
 
bool notification
 
bool criticalNotification
 
bool appletPopup
 
bool onScreenDisplay
 
bool comboBox
 
bool dndIcon
 
int windowType
 
bool managed
 
bool deleted
 
bool skipsCloseAnimation
 
bool popupWindow
 
bool outline
 
QUuid internalId
 
int pid
 
int stackingOrder
 
bool fullScreen
 
bool fullScreenable
 
bool active
 
QList< KWin::VirtualDesktop * > desktops
 
bool onAllDesktops
 
QStringList activities
 
bool skipTaskbar
 
bool skipPager
 
bool skipSwitcher
 
bool closeable
 
QIcon icon
 
bool keepAbove
 
bool keepBelow
 
bool shadeable
 
bool shade
 
bool minimizable
 
bool minimized
 
QRectF iconGeometry
 
bool specialWindow
 
bool demandsAttention
 
QString caption
 
QSizeF minSize
 
QSizeF maxSize
 
bool wantsInput
 
bool transient
 
KWin::WindowtransientFor
 
bool modal
 
QRectF frameGeometry
 
bool move
 
bool resize
 
bool decorationHasAlpha
 
bool noBorder
 
bool providesContextHelp
 
bool maximizable
 
bool moveable
 
bool moveableAcrossScreens
 
bool resizeable
 
QString desktopFileName
 
bool hasApplicationMenu
 
bool applicationMenuActive
 
bool unresponsive
 
QString colorScheme
 
KWin::Layer layer
 
bool hidden
 
KWin::Tiletile
 
bool inputMethod
 

Friends

class GeometryUpdatesBlocker
 

Detailed Description

Definition at line 60 of file window.h.

Member Enumeration Documentation

◆ MoveResizeMode

enum class KWin::Window::MoveResizeMode : uint
strongprotected
Enumerator
None 
Move 
Resize 
MoveResize 

Definition at line 1557 of file window.h.

◆ SameApplicationCheck

Enumerator
RelaxedForActive 
AllowCrossProcesses 

Definition at line 1243 of file window.h.

◆ SizeMode

How to resize the window in order to obey constraints (mainly aspect ratios).

Enumerator
SizeModeAny 
SizeModeFixedW 

Try not to affect width.

SizeModeFixedH 

Try not to affect height.

SizeModeMax 

Try not to make it larger in either direction.

Definition at line 668 of file window.h.

Constructor & Destructor Documentation

◆ ~Window()

Window::~Window ( )
override

Definition at line 105 of file window.cpp.

◆ Window()

Window::Window ( )
protected

Definition at line 61 of file window.cpp.

Member Function Documentation

◆ acceptsFocus()

virtual bool KWin::Window::acceptsFocus ( ) const
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.

◆ activeChanged

void KWin::Window::activeChanged ( )
signal

◆ activities()

QStringList Window::activities ( ) const
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.

◆ activitiesChanged

void KWin::Window::activitiesChanged ( )
signal

◆ addTransient()

void Window::addTransient ( Window * transient)
virtual

Definition at line 2319 of file window.cpp.

◆ allMainWindows()

QList< Window * > Window::allMainWindows ( ) const

Definition at line 2264 of file window.cpp.

◆ applicationMenuActive()

bool KWin::Window::applicationMenuActive ( ) const
inline

Definition at line 1252 of file window.h.

◆ applicationMenuActiveChanged

void KWin::Window::applicationMenuActiveChanged ( bool )
signal

◆ applicationMenuChanged

void KWin::Window::applicationMenuChanged ( )
signal

◆ applicationMenuObjectPath()

QString KWin::Window::applicationMenuObjectPath ( ) const
inline

Definition at line 1262 of file window.h.

◆ applicationMenuServiceName()

QString KWin::Window::applicationMenuServiceName ( ) const
inline

Definition at line 1258 of file window.h.

◆ applyWindowRules()

void Window::applyWindowRules ( )
virtual

Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.

Definition at line 4104 of file window.cpp.

◆ areGeometryUpdatesBlocked()

bool Window::areGeometryUpdatesBlocked ( ) const
inlineprotected

Definition at line 2093 of file window.h.

◆ autoRaise()

void Window::autoRaise ( )
protected

Definition at line 685 of file window.cpp.

◆ belongsToDesktop()

bool Window::belongsToDesktop ( ) const
virtual

Reimplemented in KWin::WaylandWindow, and KWin::X11Window.

Definition at line 623 of file window.cpp.

◆ belongsToLayer()

Layer Window::belongsToLayer ( ) const
protectedvirtual

Reimplemented in KWin::LayerShellV1Window.

Definition at line 575 of file window.cpp.

◆ belongsToSameApplication()

virtual bool KWin::Window::belongsToSameApplication ( const Window * other,
SameApplicationChecks checks ) const
protectedpure virtual

◆ belongToSameApplication()

bool Window::belongToSameApplication ( const Window * c1,
const Window * c2,
SameApplicationChecks checks = SameApplicationChecks() )
static

Definition at line 426 of file window.cpp.

◆ blockActivityUpdates()

void Window::blockActivityUpdates ( bool b = true)

Definition at line 3220 of file window.cpp.

◆ blockGeometryUpdates() [1/2]

void Window::blockGeometryUpdates ( )
inlineprotected

Definition at line 2098 of file window.h.

◆ blockGeometryUpdates() [2/2]

void Window::blockGeometryUpdates ( bool block)
protected

Definition at line 1150 of file window.cpp.

◆ borderBottom()

int Window::borderBottom ( ) const
protected

Definition at line 2356 of file window.cpp.

◆ borderLeft()

int Window::borderLeft ( ) const
protected

Definition at line 2361 of file window.cpp.

◆ borderRight()

int Window::borderRight ( ) const
protected

Definition at line 2366 of file window.cpp.

◆ borderTop()

int Window::borderTop ( ) const
protected

Definition at line 2371 of file window.cpp.

◆ bufferGeometry()

QRectF Window::bufferGeometry ( ) const
inline

Returns the geometry of the pixmap or buffer attached to this Window.

For X11 windows, this method returns server-side geometry of the Window.

For Wayland windows, this method returns rectangle that the main surface occupies on the screen, in global screen coordinates.

Definition at line 1862 of file window.h.

◆ bufferGeometryChanged

void KWin::Window::bufferGeometryChanged ( const QRectF & oldGeometry)
signal

This signal is emitted when the Window's buffer geometry changes.

◆ cancelAutoRaise()

void Window::cancelAutoRaise ( )

Definition at line 679 of file window.cpp.

◆ cancelShadeHoverTimer()

void Window::cancelShadeHoverTimer ( )

Definition at line 941 of file window.cpp.

◆ caption()

QString Window::caption ( ) const
Returns
The caption consisting of captionNormal and captionSuffix
See also
captionNormal
captionSuffix

Definition at line 3077 of file window.cpp.

◆ captionChanged

void KWin::Window::captionChanged ( )
signal

◆ captionNormal()

virtual QString KWin::Window::captionNormal ( ) const
pure virtual
Returns
The caption as set by the Window without any suffix.
See also
caption
captionSuffix

Implemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.

◆ captionNormalChanged

void KWin::Window::captionNormalChanged ( )
signal

◆ captionSuffix()

virtual QString KWin::Window::captionSuffix ( ) const
pure virtual
Returns
The suffix added to the caption (e.g. shortcut, machine name, etc.)
See also
caption
captionNormal

Implemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.

◆ checkActivities()

virtual void KWin::Window::checkActivities ( )
inlinevirtual

Refresh Window's cache of activites Called when activity daemon status changes

Reimplemented in KWin::X11Window.

Definition at line 749 of file window.h.

◆ checkNoBorder()

void Window::checkNoBorder ( )
virtual

Reimplemented in KWin::X11Window.

Definition at line 4039 of file window.cpp.

◆ checkOffscreenPosition()

void Window::checkOffscreenPosition ( QRectF * geom,
const QRectF & screenArea )
protected

Definition at line 3856 of file window.cpp.

◆ checkQuickTilingMaximizationZones()

void Window::checkQuickTilingMaximizationZones ( int xroot,
int yroot )
protected

Definition at line 2454 of file window.cpp.

◆ checkUnrestrictedInteractiveMoveResize()

void Window::checkUnrestrictedInteractiveMoveResize ( )
protected

Definition at line 1303 of file window.cpp.

◆ checkWorkspacePosition()

void Window::checkWorkspacePosition ( QRectF oldGeometry = QRectF(),
const VirtualDesktop * oldDesktop = nullptr )

Definition at line 3661 of file window.cpp.

◆ cleanTabBox()

void Window::cleanTabBox ( )
protected

Definition at line 4054 of file window.cpp.

◆ clientGeometry()

QRectF Window::clientGeometry ( ) const
inline

Returns the geometry of the client window, in global screen coordinates.

Definition at line 1867 of file window.h.

◆ clientGeometryChanged

void KWin::Window::clientGeometryChanged ( const QRectF & oldGeometry)
signal

This signal is emitted when the Window's client geometry has changed.

◆ clientMachine()

ClientMachine * Window::clientMachine ( ) const
inline

Definition at line 2057 of file window.h.

◆ clientPosToFramePos()

QPointF Window::clientPosToFramePos ( const QPointF & point) const
virtual

Calculates the matching frame position for the given client position point.

Reimplemented in KWin::X11Window.

Definition at line 3253 of file window.cpp.

◆ clientRectToFrameRect()

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.

◆ clientSize()

QSizeF Window::clientSize ( ) const
inline

Definition at line 1872 of file window.h.

◆ clientSizeToFrameSize()

QSizeF Window::clientSizeToFrameSize ( const QSizeF & size) const
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.

◆ closeableChanged

void KWin::Window::closeableChanged ( bool )
signal

◆ closed

void KWin::Window::closed ( )
signal

◆ closeWindow

virtual void KWin::Window::closeWindow ( )
pure virtualslot

◆ colorScheme()

QString Window::colorScheme ( ) const

Definition at line 1023 of file window.cpp.

◆ colorSchemeChanged

void KWin::Window::colorSchemeChanged ( )
signal

◆ constrainClientSize()

QSizeF Window::constrainClientSize ( const QSizeF & size,
SizeMode mode = SizeModeAny ) const
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.

◆ constrainFrameSize()

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.

◆ createItem()

virtual std::unique_ptr< WindowItem > KWin::Window::createItem ( Scene * scene)
protectedpure virtual

◆ cursor()

CursorShape KWin::Window::cursor ( ) const
inline

Cursor shape for move/resize mode.

Definition at line 1121 of file window.h.

◆ damaged

void KWin::Window::damaged ( KWin::Window * window)
signal

◆ decoratedClient()

Decoration::DecoratedClientImpl * Window::decoratedClient ( ) const

Definition at line 2811 of file window.cpp.

◆ decoration() [1/2]

KDecoration2::Decoration * KWin::Window::decoration ( )
inline

Definition at line 1154 of file window.h.

◆ decoration() [2/2]

const KDecoration2::Decoration * KWin::Window::decoration ( ) const
inline

Definition at line 1158 of file window.h.

◆ decorationChanged

void KWin::Window::decorationChanged ( )
signal

◆ decorationHasAlpha()

bool Window::decorationHasAlpha ( ) const

Definition at line 2674 of file window.cpp.

◆ decorationPalette()

const Decoration::DecorationPalette * Window::decorationPalette ( )

Definition at line 1012 of file window.cpp.

◆ demandAttention()

void Window::demandAttention ( bool set = true)

Definition at line 708 of file window.cpp.

◆ demandsAttentionChanged

void KWin::Window::demandsAttentionChanged ( )
signal

Emitted whenever the demands attention state changes.

◆ desktopFileName()

QString KWin::Window::desktopFileName ( ) const
inline

Definition at line 1221 of file window.h.

◆ desktopFileNameChanged

void KWin::Window::desktopFileNameChanged ( )
signal

◆ desktopIds()

QStringList Window::desktopIds ( ) const

Definition at line 830 of file window.cpp.

◆ desktops()

QList< VirtualDesktop * > Window::desktops ( ) const

Definition at line 825 of file window.cpp.

◆ desktopsChanged

void KWin::Window::desktopsChanged ( )
signal

◆ destroyWindow()

virtual void KWin::Window::destroyWindow ( )
pure virtual

◆ destroyWindowManagementInterface()

void Window::destroyWindowManagementInterface ( )
protected

Definition at line 1975 of file window.cpp.

◆ dockWantsInput()

bool Window::dockWantsInput ( ) const
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.

◆ doFinishInteractiveMoveResize()

void Window::doFinishInteractiveMoveResize ( )
protectedvirtual

Reimplemented in KWin::XdgToplevelWindow.

Definition at line 2441 of file window.cpp.

◆ doInteractiveResizeSync()

void Window::doInteractiveResizeSync ( const QRectF & rect)
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.

◆ doMinimize()

void Window::doMinimize ( )
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.

◆ dontInteractiveMoveResize()

void Window::dontInteractiveMoveResize ( )
protected

Definition at line 2578 of file window.cpp.

◆ doSetActive()

void Window::doSetActive ( )
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.

◆ doSetDemandsAttention()

void Window::doSetDemandsAttention ( )
protectedvirtual

Reimplemented in KWin::X11Window.

Definition at line 722 of file window.cpp.

◆ doSetDesktop()

void Window::doSetDesktop ( )
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.

◆ doSetHidden()

void Window::doSetHidden ( )
protectedvirtual

Reimplemented in KWin::X11Window.

Definition at line 3573 of file window.cpp.

◆ doSetHiddenByShowDesktop()

void Window::doSetHiddenByShowDesktop ( )
protectedvirtual

Reimplemented in KWin::X11Window.

Definition at line 3577 of file window.cpp.

◆ doSetKeepAbove()

void Window::doSetKeepAbove ( )
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.

◆ doSetKeepBelow()

void Window::doSetKeepBelow ( )
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.

◆ doSetOnActivities()

void Window::doSetOnActivities ( const QStringList & activityList)
protectedvirtual

Called from setOnActivities just after the activity list member has been updated, but before updateActivities is called.

Parameters
activityListthe new list of activities set on that window

Default implementation does nothing

Reimplemented in KWin::X11Window.

Definition at line 3183 of file window.cpp.

◆ doSetQuickTileMode()

void Window::doSetQuickTileMode ( )
protectedvirtual

Reimplemented in KWin::XdgToplevelWindow.

Definition at line 3569 of file window.cpp.

◆ doSetShade()

void Window::doSetShade ( ShadeMode previousShadeMode)
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.

◆ doSetSkipPager()

void Window::doSetSkipPager ( )
protectedvirtual

Reimplemented in KWin::X11Window.

Definition at line 460 of file window.cpp.

◆ doSetSkipSwitcher()

void Window::doSetSkipSwitcher ( )
protectedvirtual

Reimplemented in KWin::X11Window.

Definition at line 489 of file window.cpp.

◆ doSetSkipTaskbar()

void Window::doSetSkipTaskbar ( )
protectedvirtual

Reimplemented in KWin::X11Window.

Definition at line 485 of file window.cpp.

◆ doSetSuspended()

void Window::doSetSuspended ( )
protectedvirtual

Reimplemented in KWin::XdgToplevelWindow.

Definition at line 4287 of file window.cpp.

◆ doStartInteractiveMoveResize()

bool Window::doStartInteractiveMoveResize ( )
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() [1/2]

EffectWindow * Window::effectWindow ( )

Definition at line 279 of file window.cpp.

◆ effectWindow() [2/2]

const EffectWindow * Window::effectWindow ( ) const

Definition at line 284 of file window.cpp.

◆ electricBorderMode()

QuickTileMode KWin::Window::electricBorderMode ( ) const
inlineprotected

Definition at line 1527 of file window.h.

◆ elevate()

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.

◆ endInteractiveMoveResize()

void Window::endInteractiveMoveResize ( )

Ends move resize when all pointer buttons are up again.

Definition at line 2614 of file window.cpp.

◆ ensurePalette()

void Window::ensurePalette ( )
protected

Definition at line 1058 of file window.cpp.

◆ ensureSpecialStateGeometry()

QRectF Window::ensureSpecialStateGeometry ( const QRectF & geometry)
protected

Definition at line 3599 of file window.cpp.

◆ enterDesktop()

void Window::enterDesktop ( VirtualDesktop * desktop)

Definition at line 786 of file window.cpp.

◆ evaluateWindowRules()

void Window::evaluateWindowRules ( )

Definition at line 4074 of file window.cpp.

◆ findDesktopFile()

QString Window::findDesktopFile ( const QString & fileName)
static

Definition at line 2976 of file window.cpp.

◆ findInList()

template<class T , class U >
T * Window::findInList ( const QList< T * > & list,
std::function< bool(const U *)> func )
inlinestatic

Finds the Window matching the condition expressed in func in list.

The method is templated to operate on either a list of windows or on a list of a subclass type of Window.

Parameters
listThe list to search in
funcThe condition function (compare std::find_if)
Returns
T* The found Window or null if there is no matching Window

Definition at line 2063 of file window.h.

◆ findModal()

virtual Window * KWin::Window::findModal ( bool allow_itself = false)
pure virtual

◆ finishCompositing()

void Window::finishCompositing ( )
virtual

Reimplemented in KWin::X11Window.

Definition at line 223 of file window.cpp.

◆ finishInteractiveMoveResize()

void Window::finishInteractiveMoveResize ( bool cancel)
protected

Definition at line 1262 of file window.cpp.

◆ finishWindowRules()

void Window::finishWindowRules ( )

Definition at line 4095 of file window.cpp.

◆ frameGeometry()

QRectF Window::frameGeometry ( ) const
inline

Returns the geometry of the Window, excluding invisible portions, e.g. server-side and client-side drop shadows, etc.

Definition at line 1877 of file window.h.

◆ frameGeometryAboutToChange

void KWin::Window::frameGeometryAboutToChange ( )
signal

This signal is emitted when the frame geometry is about to change. the new geometry is not known yet

◆ frameGeometryChanged

void KWin::Window::frameGeometryChanged ( const QRectF & oldGeometry)
signal

This signal is emitted when the Window's frame geometry changes.

◆ frameMargins()

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.

◆ framePosToClientPos()

QPointF Window::framePosToClientPos ( const QPointF & point) const
virtual

Calculates the matching client position for the given frame position point.

Reimplemented in KWin::X11Window.

Definition at line 3248 of file window.cpp.

◆ frameRectToClientRect()

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.

◆ frameSizeToClientSize()

QSizeF Window::frameSizeToClientSize ( const QSizeF & size) const
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.

◆ fullScreenChanged

void KWin::Window::fullScreenChanged ( )
signal

◆ fullscreenGeometryRestore()

QRectF Window::fullscreenGeometryRestore ( ) const

Definition at line 3908 of file window.cpp.

◆ geometryRestore()

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.

◆ getMouseCommand()

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.

◆ getWheelCommand()

Options::MouseCommand Window::getWheelCommand ( Qt::Orientation orientation,
bool * handled ) const

Definition at line 2009 of file window.cpp.

◆ group() [1/2]

Group * Window::group ( )
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.

◆ group() [2/2]

const Group * Window::group ( ) const
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.

◆ groupTransient()

bool Window::groupTransient ( ) const
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.

◆ growHorizontal()

void Window::growHorizontal ( )

Definition at line 751 of file placement.cpp.

◆ growVertical()

void Window::growVertical ( )

Definition at line 808 of file placement.cpp.

◆ handleInteractiveMoveResize() [1/2]

void Window::handleInteractiveMoveResize ( const QPointF & local,
const QPointF & global )
protected

Definition at line 1383 of file window.cpp.

◆ handleInteractiveMoveResize() [2/2]

void Window::handleInteractiveMoveResize ( qreal x,
qreal y,
qreal x_root,
qreal y_root )
protected

Definition at line 1423 of file window.cpp.

◆ handlePaletteChange()

void Window::handlePaletteChange ( )
protected

Definition at line 1091 of file window.cpp.

◆ hasApplicationMenu()

bool Window::hasApplicationMenu ( ) const

Definition at line 3004 of file window.cpp.

◆ hasApplicationMenuChanged

void KWin::Window::hasApplicationMenuChanged ( bool )
signal

◆ hasNETSupport()

bool KWin::Window::hasNETSupport ( ) const

◆ hasPopupGrab()

virtual bool KWin::Window::hasPopupGrab ( ) 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.

See also
popupDone
Since
5.10

Reimplemented in KWin::InternalWindow, and KWin::XdgPopupWindow.

Definition at line 817 of file window.h.

◆ hasStrut()

bool Window::hasStrut ( ) const
virtual

Reimplemented in KWin::LayerShellV1Window, and KWin::X11Window.

Definition at line 1787 of file window.cpp.

◆ hasTransient()

bool Window::hasTransient ( const Window * transient,
bool indirect ) const
virtual
Returns
true if transient is the transient_for window for this window, or recursively the transient_for window
Todo
: remove boolean trap

Reimplemented in KWin::X11Window.

Definition at line 2251 of file window.cpp.

◆ hasTransientPlacementHint()

bool Window::hasTransientPlacementHint ( ) const
virtual
Returns
Whether there is a hint available to place the Window on it's parent, default false.
See also
transientPlacementHint

Reimplemented in KWin::XdgPopupWindow.

Definition at line 2240 of file window.cpp.

◆ height()

qreal Window::height ( ) const
inline

Definition at line 1907 of file window.h.

◆ hiddenByShowDesktopChanged

void KWin::Window::hiddenByShowDesktopChanged ( )
signal

◆ hiddenChanged

void KWin::Window::hiddenChanged ( )
signal

◆ hitTest()

bool Window::hitTest ( const QPointF & point) const
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.

◆ icon()

const QIcon & KWin::Window::icon ( ) const
inline

Definition at line 877 of file window.h.

◆ iconChanged

void KWin::Window::iconChanged ( )
signal

◆ iconFromDesktopFile() [1/2]

QString Window::iconFromDesktopFile ( ) const
protected

Definition at line 2971 of file window.cpp.

◆ iconFromDesktopFile() [2/2]

QString Window::iconFromDesktopFile ( const QString & fileName)
static

Helper function to compute the icon out of an application id defined by fileName

Returns
an icon name that can be used with QIcon::fromTheme()

Definition at line 2960 of file window.cpp.

◆ iconGeometry()

QRectF Window::iconGeometry ( ) const
virtual

Reimplemented in KWin::X11Window.

Definition at line 2857 of file window.cpp.

◆ initialInteractiveMoveResizeGeometry()

QRectF KWin::Window::initialInteractiveMoveResizeGeometry ( ) const
inlineprotected

Definition at line 1611 of file window.h.

◆ inputTransformation()

QMatrix4x4 Window::inputTransformation ( ) const
Returns
Transformation to map from global to window coordinates.

Definition at line 374 of file window.cpp.

◆ inputTransformationChanged

void KWin::Window::inputTransformationChanged ( )
signal

◆ interactiveMoveOffset()

QPointF KWin::Window::interactiveMoveOffset ( ) const
inlineprotected

Definition at line 1595 of file window.h.

◆ interactiveMoveResizeCount()

uint32_t Window::interactiveMoveResizeCount ( ) const

Definition at line 4167 of file window.cpp.

◆ interactiveMoveResizeFinished

void KWin::Window::interactiveMoveResizeFinished ( )
signal

◆ interactiveMoveResizeGravity()

Gravity KWin::Window::interactiveMoveResizeGravity ( ) const
inlineprotected

Definition at line 1616 of file window.h.

◆ interactiveMoveResizeStarted

void KWin::Window::interactiveMoveResizeStarted ( )
signal

◆ interactiveMoveResizeStartOutput()

Output * KWin::Window::interactiveMoveResizeStartOutput ( ) const
inlineprotected

Definition at line 1632 of file window.h.

◆ interactiveMoveResizeStepped

void KWin::Window::interactiveMoveResizeStepped ( const QRectF & geometry)
signal

◆ internalId()

QUuid KWin::Window::internalId ( ) const
inline

A UUID to uniquely identify this Window independent of windowing system.

Definition at line 846 of file window.h.

◆ invalidateDecoration()

void Window::invalidateDecoration ( )
virtual

Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.

Definition at line 4020 of file window.cpp.

◆ invalidateDecorationDoubleClickTimer()

void Window::invalidateDecorationDoubleClickTimer ( )
protected

Definition at line 2797 of file window.cpp.

◆ invertedInteractiveMoveOffset()

QPointF KWin::Window::invertedInteractiveMoveOffset ( ) const
inlineprotected

Definition at line 1603 of file window.h.

◆ isActive()

bool KWin::Window::isActive ( ) const
inline

Definition at line 882 of file window.h.

◆ isActiveFullScreen()

bool Window::isActiveFullScreen ( ) const
protected

Definition at line 2343 of file window.cpp.

◆ isAppletPopup()

bool Window::isAppletPopup ( ) const
inline

Definition at line 1987 of file window.h.

◆ isClient()

bool Window::isClient ( ) const
virtual

Reimplemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.

Definition at line 302 of file window.cpp.

◆ isCloseable()

virtual bool KWin::Window::isCloseable ( ) const
pure virtual

◆ isComboBox()

bool Window::isComboBox ( ) const
inline

Definition at line 1997 of file window.h.

◆ isCriticalNotification()

bool Window::isCriticalNotification ( ) const
inline

Definition at line 1982 of file window.h.

◆ isDecorated()

bool KWin::Window::isDecorated ( ) const
inline

Definition at line 1162 of file window.h.

◆ isDeleted()

bool Window::isDeleted ( ) const

Definition at line 540 of file window.cpp.

◆ isDemandingAttention()

bool KWin::Window::isDemandingAttention ( ) const
inline

Definition at line 910 of file window.h.

◆ isDesktop()

bool Window::isDesktop ( ) const
inline

Definition at line 1922 of file window.h.

◆ isDialog()

bool Window::isDialog ( ) const
inline

Definition at line 1952 of file window.h.

◆ isDNDIcon()

bool Window::isDNDIcon ( ) const
inline

Definition at line 2002 of file window.h.

◆ isDock()

bool Window::isDock ( ) const
inline

Definition at line 1927 of file window.h.

◆ isDropdownMenu()

bool Window::isDropdownMenu ( ) const
inline

Definition at line 1962 of file window.h.

◆ isElectricBorderMaximizing()

bool KWin::Window::isElectricBorderMaximizing ( ) const
inlineprotected

Definition at line 1532 of file window.h.

◆ isFullScreen()

bool Window::isFullScreen ( ) const
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.

◆ isFullScreenable()

bool Window::isFullScreenable ( ) const
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.

◆ isHidden()

bool Window::isHidden ( ) const

Definition at line 4237 of file window.cpp.

◆ isHiddenByShowDesktop()

bool Window::isHiddenByShowDesktop ( ) const

Definition at line 4257 of file window.cpp.

◆ isInputMethod()

bool Window::isInputMethod ( ) const
inlinevirtual

Reimplemented in KWin::InputPanelV1Window.

Definition at line 2012 of file window.h.

◆ isInteractiveMove()

bool KWin::Window::isInteractiveMove ( ) const
inline

Returns true if the Client is being interactively moved; otherwise false.

Definition at line 1107 of file window.h.

◆ isInteractiveMoveResize()

bool KWin::Window::isInteractiveMoveResize ( ) const
inlineprotected
Returns
whether the Window is currently in move resize mode

Definition at line 1570 of file window.h.

◆ isInteractiveMoveResizePointerButtonDown()

bool KWin::Window::isInteractiveMoveResizePointerButtonDown ( ) const
inlineprotected

Definition at line 1624 of file window.h.

◆ isInteractiveResize()

bool KWin::Window::isInteractiveResize ( ) const
inline

Returns true if the Client is being interactively resized; otherwise false.

Definition at line 1114 of file window.h.

◆ isInternal()

bool Window::isInternal ( ) const
inlinevirtual

Reimplemented in KWin::InternalWindow.

Definition at line 2022 of file window.h.

◆ isLocalhost()

bool Window::isLocalhost ( ) const
virtual

Reimplemented in KWin::WaylandWindow.

Definition at line 409 of file window.cpp.

◆ isLockScreen()

bool Window::isLockScreen ( ) const
inlinevirtual

Reimplemented in KWin::InternalWindow, and KWin::WaylandWindow.

Definition at line 2007 of file window.h.

◆ isLockScreenOverlay()

bool Window::isLockScreenOverlay ( ) const

Definition at line 4181 of file window.cpp.

◆ isMaximizable()

bool Window::isMaximizable ( ) const
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.

◆ isMenu()

bool Window::isMenu ( ) const
inline

Definition at line 1932 of file window.h.

◆ isMinimizable()

bool Window::isMinimizable ( ) const
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.

◆ isMinimized()

bool KWin::Window::isMinimized ( ) const
inline

Definition at line 988 of file window.h.

◆ isModal()

bool Window::isModal ( ) const

Definition at line 2285 of file window.cpp.

◆ isMostRecentlyRaised()

bool Window::isMostRecentlyRaised ( ) const
protected

Definition at line 691 of file window.cpp.

◆ isMovable()

virtual bool KWin::Window::isMovable ( ) const
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.

◆ isMovableAcrossScreens()

virtual bool KWin::Window::isMovableAcrossScreens ( ) const
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.

◆ isNormalWindow()

bool Window::isNormalWindow ( ) const
inline

Definition at line 1957 of file window.h.

◆ isNotification()

bool Window::isNotification ( ) const
inline

Definition at line 1977 of file window.h.

◆ isOnActiveOutput()

bool Window::isOnActiveOutput ( ) const

Definition at line 249 of file window.cpp.

◆ isOnActivity()

bool Window::isOnActivity ( const QString & activity) const
inline

Definition at line 2042 of file window.h.

◆ isOnAllActivities()

bool Window::isOnAllActivities ( ) const
inline

Definition at line 2037 of file window.h.

◆ isOnAllDesktops()

bool Window::isOnAllDesktops ( ) const
inline

Definition at line 2032 of file window.h.

◆ isOnCurrentActivity()

bool Window::isOnCurrentActivity ( ) const

Definition at line 3097 of file window.cpp.

◆ isOnCurrentDesktop()

bool Window::isOnCurrentDesktop ( ) const

Definition at line 848 of file window.cpp.

◆ isOnDesktop()

bool Window::isOnDesktop ( VirtualDesktop * desktop) const

Definition at line 843 of file window.cpp.

◆ isOnOutput()

bool Window::isOnOutput ( Output * output) const

Definition at line 254 of file window.cpp.

◆ isOnScreenDisplay()

bool Window::isOnScreenDisplay ( ) const
inline

Definition at line 1992 of file window.h.

◆ isOutline()

bool Window::isOutline ( ) const
inlinevirtual

Reimplemented in KWin::InternalWindow, and KWin::X11Window.

Definition at line 2017 of file window.h.

◆ isPlaceable()

bool Window::isPlaceable ( ) const
virtual

◆ isPopupMenu()

bool Window::isPopupMenu ( ) const
inline

Definition at line 1967 of file window.h.

◆ isPopupWindow()

bool Window::isPopupWindow ( ) const
inlinevirtual

Reimplemented in KWin::InternalWindow, and KWin::XdgPopupWindow.

Definition at line 2074 of file window.h.

◆ isRequestedFullScreen()

bool Window::isRequestedFullScreen ( ) const
virtual

Reimplemented in KWin::XdgToplevelWindow.

Definition at line 3940 of file window.cpp.

◆ isResizable()

virtual bool KWin::Window::isResizable ( ) const
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.

◆ isShade()

bool KWin::Window::isShade ( ) const
inline

Returns true if the window is shaded and shadeMode is ShadeNormal; otherwise returns false.

Definition at line 1034 of file window.h.

◆ isShadeable()

bool Window::isShadeable ( ) const
virtual

Whether the Window can be shaded. Default implementation returns false.

Reimplemented in KWin::X11Window.

Definition at line 858 of file window.cpp.

◆ isShown()

bool Window::isShown ( ) const

Definition at line 4232 of file window.cpp.

◆ isSpecialWindow()

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.

◆ isSplash()

bool Window::isSplash ( ) const
inline

Definition at line 1942 of file window.h.

◆ isSuspended()

bool Window::isSuspended ( ) const

Definition at line 4271 of file window.cpp.

◆ isToolbar()

bool Window::isToolbar ( ) const
inline

Definition at line 1937 of file window.h.

◆ isTooltip()

bool Window::isTooltip ( ) const
inline

Definition at line 1972 of file window.h.

◆ isTransient()

bool Window::isTransient ( ) const
virtual

Reimplemented in KWin::X11Window, KWin::XdgToplevelWindow, and KWin::XdgPopupWindow.

Definition at line 2290 of file window.cpp.

◆ isUnmanaged()

bool Window::isUnmanaged ( ) const
virtual

Reimplemented in KWin::X11Window.

Definition at line 307 of file window.cpp.

◆ isUnrestrictedInteractiveMoveResize()

bool KWin::Window::isUnrestrictedInteractiveMoveResize ( ) const
inlineprotected
Returns
whether the move resize mode is unrestricted.

Definition at line 1584 of file window.h.

◆ isUtility()

bool Window::isUtility ( ) const
inline

Definition at line 1947 of file window.h.

◆ isWaitingForInteractiveMoveResizeSync()

bool Window::isWaitingForInteractiveMoveResizeSync ( ) const
protectedvirtual

Whether a sync request is still pending. Default implementation returns false.

Reimplemented in KWin::X11Window.

Definition at line 2445 of file window.cpp.

◆ keepAbove()

bool KWin::Window::keepAbove ( ) const
inline

Definition at line 898 of file window.h.

◆ keepAboveChanged

void KWin::Window::keepAboveChanged ( bool )
signal

◆ keepBelow()

bool KWin::Window::keepBelow ( ) const
inline

Definition at line 903 of file window.h.

◆ keepBelowChanged

void KWin::Window::keepBelowChanged ( bool )
signal

◆ keepInArea() [1/2]

void Window::keepInArea ( QRectF area,
bool partial = false )

Definition at line 1129 of file window.cpp.

◆ keepInArea() [2/2]

QRectF Window::keepInArea ( QRectF geometry,
QRectF area,
bool partial = false )

Definition at line 1096 of file window.cpp.

◆ keyboardGeometryRestore()

QRectF Window::keyboardGeometryRestore ( ) const
protected

Definition at line 2934 of file window.cpp.

◆ keyPressEvent()

void Window::keyPressEvent ( uint key_code)

Definition at line 2531 of file window.cpp.

◆ killWindow()

virtual void KWin::Window::killWindow ( )
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.

◆ lastUsageSerial()

quint32 Window::lastUsageSerial ( ) const

Definition at line 4162 of file window.cpp.

◆ layer()

Layer Window::layer ( ) const

Definition at line 552 of file window.cpp.

◆ layoutDecorationRects()

void Window::layoutDecorationRects ( QRectF & left,
QRectF & top,
QRectF & right,
QRectF & bottom ) const

Definition at line 2690 of file window.cpp.

◆ leaveDesktop()

void Window::leaveDesktop ( VirtualDesktop * desktop)

Definition at line 796 of file window.cpp.

◆ leaveInteractiveMoveResize()

void Window::leaveInteractiveMoveResize ( )
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.

◆ lockScreenOverlayChanged

void KWin::Window::lockScreenOverlayChanged ( )
signal

◆ mainWindows()

QList< Window * > Window::mainWindows ( ) const
virtual

Reimplemented in KWin::X11Window.

Definition at line 2256 of file window.cpp.

◆ mapFromLocal()

QPointF Window::mapFromLocal ( const QPointF & point) const

Definition at line 404 of file window.cpp.

◆ mapToFrame()

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.

◆ mapToLocal()

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.

◆ markAsDeleted()

void Window::markAsDeleted ( )
protected

Definition at line 545 of file window.cpp.

◆ maximize()

void Window::maximize ( MaximizeMode mode)
virtual

Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.

Definition at line 1167 of file window.cpp.

◆ maximizeableChanged

void KWin::Window::maximizeableChanged ( bool )
signal

◆ maximizedAboutToChange

void KWin::Window::maximizedAboutToChange ( MaximizeMode mode)
signal

◆ maximizedChanged

void KWin::Window::maximizedChanged ( )
signal

◆ maximizeMode()

MaximizeMode Window::maximizeMode ( ) const
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.

◆ maxSize()

QSizeF Window::maxSize ( ) const
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.

◆ maybeSendFrameCallback()

void Window::maybeSendFrameCallback ( )
protected

Definition at line 4203 of file window.cpp.

◆ minimizeableChanged

void KWin::Window::minimizeableChanged ( bool )
signal

◆ minimizedChanged

void KWin::Window::minimizedChanged ( )
signal

◆ minSize()

QSizeF Window::minSize ( ) const
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.

◆ modalChanged

void KWin::Window::modalChanged ( )
signal

◆ mouseGravity()

Gravity Window::mouseGravity ( ) const
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.

◆ move()

void Window::move ( const QPointF & point)

Definition at line 3307 of file window.cpp.

◆ moveResize()

void Window::moveResize ( const QRectF & rect)

Definition at line 3323 of file window.cpp.

◆ moveResizeCursorChanged

void KWin::Window::moveResizeCursorChanged ( CursorShape )
signal

◆ moveResizedChanged

void KWin::Window::moveResizedChanged ( )
signal

◆ moveResizeGeometry()

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.

◆ moveResizeInternal()

virtual void KWin::Window::moveResizeInternal ( const QRectF & rect,
MoveResizeMode mode )
protectedpure virtual

◆ moveResizeOutput()

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.

◆ moveToArea()

QRectF Window::moveToArea ( const QRectF & geometry,
const QRectF & oldArea,
const QRectF & newArea )
protected

Definition at line 3581 of file window.cpp.

◆ noBorder()

bool Window::noBorder ( ) const
virtual

Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.

Definition at line 4024 of file window.cpp.

◆ opacity()

qreal Window::opacity ( ) const

Definition at line 191 of file window.cpp.

◆ opacityChanged

void KWin::Window::opacityChanged ( KWin::Window * window,
qreal oldOpacity )
signal

◆ originalSkipTaskbar()

bool KWin::Window::originalSkipTaskbar ( ) const
inline

Definition at line 866 of file window.h.

◆ output()

Output * Window::output ( ) const

Definition at line 236 of file window.cpp.

◆ outputChanged

void KWin::Window::outputChanged ( )
signal

Emitted whenever the Window's screen changes. This can happen either in consequence to a screen being removed/added or if the Window's geometry changes.

Since
4.11

◆ packTo()

void Window::packTo ( qreal left,
qreal top )

Definition at line 680 of file placement.cpp.

◆ palette()

QPalette Window::palette ( )

Definition at line 1006 of file window.cpp.

◆ paletteChanged

void KWin::Window::paletteChanged ( const QPalette & p)
signal

◆ pendingMoveResizeMode()

Window::MoveResizeMode Window::pendingMoveResizeMode ( ) const
inlineprotected

Definition at line 2108 of file window.h.

◆ performMouseCommand()

bool Window::performMouseCommand ( Options::MouseCommand cmd,
const QPointF & globalPos )

Definition at line 2022 of file window.cpp.

◆ pid()

pid_t Window::pid ( ) const
virtual

Reimplemented in KWin::WaylandWindow, and KWin::X11Window.

Definition at line 323 of file window.cpp.

◆ pointerEnterEvent()

void Window::pointerEnterEvent ( const QPointF & globalPos)
virtual

Reimplemented in KWin::InternalWindow.

Definition at line 2821 of file window.cpp.

◆ pointerLeaveEvent()

void Window::pointerLeaveEvent ( )
virtual

Reimplemented in KWin::InternalWindow.

Definition at line 2847 of file window.cpp.

◆ popupDone()

virtual void KWin::Window::popupDone ( )
inlinevirtual

This method should be invoked for windows with a popup grab when the grab ends.

The default implementation does nothing.

See also
hasPopupGrab
Since
5.10

Reimplemented in KWin::InternalWindow, and KWin::XdgPopupWindow.

Definition at line 829 of file window.h.

◆ pos()

QPointF Window::pos ( ) const
inline

Definition at line 1887 of file window.h.

◆ preferredColorScheme()

QString Window::preferredColorScheme ( ) const
virtual

Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.

Definition at line 1018 of file window.cpp.

◆ processDecorationButtonPress()

bool Window::processDecorationButtonPress ( QMouseEvent * event,
bool ignoreMenu = false )

Definition at line 2720 of file window.cpp.

◆ processDecorationButtonRelease()

void Window::processDecorationButtonRelease ( QMouseEvent * event)

Definition at line 2773 of file window.cpp.

◆ processDecorationMove()

void Window::processDecorationMove ( const QPointF & localPos,
const QPointF & globalPos )

Definition at line 2706 of file window.cpp.

◆ providesContextHelp()

bool Window::providesContextHelp ( ) const
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.

See also
showContextHelp;

Reimplemented in KWin::X11Window.

Definition at line 2802 of file window.cpp.

◆ quickTileGeometry()

QRectF Window::quickTileGeometry ( QuickTileMode mode,
const QPointF & pos ) const
protected

Definition at line 3354 of file window.cpp.

◆ quickTileGeometryRestore()

QRectF Window::quickTileGeometryRestore ( ) const
protected

Definition at line 3397 of file window.cpp.

◆ quickTileMode()

QuickTileMode KWin::Window::quickTileMode ( ) const
inline

Definition at line 1096 of file window.h.

◆ quickTileModeChanged

void KWin::Window::quickTileModeChanged ( )
signal

◆ readyForPainting()

bool Window::readyForPainting ( ) const
inline

Definition at line 1917 of file window.h.

◆ readyForPaintingChanged

void KWin::Window::readyForPaintingChanged ( )
signal

◆ rect()

QRectF Window::rect ( ) const
inline

Definition at line 1912 of file window.h.

◆ ref()

void Window::ref ( )

Definition at line 113 of file window.cpp.

◆ refOffscreenRendering()

void Window::refOffscreenRendering ( )

Definition at line 4186 of file window.cpp.

◆ removeRule()

void Window::removeRule ( Rules * r)

Definition at line 4069 of file window.cpp.

◆ removeTransient()

void Window::removeTransient ( Window * transient)
virtual

Definition at line 2329 of file window.cpp.

◆ removeTransientFromList()

void Window::removeTransientFromList ( Window * cl)

Definition at line 2338 of file window.cpp.

◆ requestedMaximizeMode()

MaximizeMode Window::requestedMaximizeMode ( ) const
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.

◆ resetQuickTilingMaximizationZones()

void Window::resetQuickTilingMaximizationZones ( )
protected

Definition at line 2520 of file window.cpp.

◆ resize()

void Window::resize ( const QSizeF & size)

Definition at line 3315 of file window.cpp.

◆ resizeIncrements()

QSizeF Window::resizeIncrements ( ) const
protectedvirtual

Reimplemented in KWin::X11Window.

Definition at line 2573 of file window.cpp.

◆ resizeWithChecks()

virtual QRectF KWin::Window::resizeWithChecks ( const QRectF & geometry,
const QSizeF & s )
pure virtual

◆ resourceClass()

QString Window::resourceClass ( ) const
inline

Definition at line 2052 of file window.h.

◆ resourceName()

QString Window::resourceName ( ) const
inline

Definition at line 2047 of file window.h.

◆ rules()

const WindowRules * KWin::Window::rules ( ) const
inline

Definition at line 1048 of file window.h.

◆ sendToOutput()

void Window::sendToOutput ( Output * output)

Definition at line 3622 of file window.cpp.

◆ setActive()

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.

◆ setApplicationMenuActive()

void Window::setApplicationMenuActive ( bool applicationMenuActive)

Definition at line 3037 of file window.cpp.

◆ setColorScheme()

void Window::setColorScheme ( const QString & colorScheme)

Definition at line 1028 of file window.cpp.

◆ setDecoratedClient()

void Window::setDecoratedClient ( Decoration::DecoratedClientImpl * client)

Definition at line 2816 of file window.cpp.

◆ setDecoration()

void Window::setDecoration ( std::shared_ptr< KDecoration2::Decoration > decoration)
protected

Definition at line 2625 of file window.cpp.

◆ setDesktopFileName()

void Window::setDesktopFileName ( const QString & name)
protected

Definition at line 2949 of file window.cpp.

◆ setDesktops()

void Window::setDesktops ( QList< VirtualDesktop * > desktops)

Definition at line 726 of file window.cpp.

◆ setElectricBorderMaximizing()

void Window::setElectricBorderMaximizing ( bool maximizing)
protected

Definition at line 3343 of file window.cpp.

◆ setElectricBorderMode()

void Window::setElectricBorderMode ( QuickTileMode mode)
protected

Definition at line 3329 of file window.cpp.

◆ setFullScreen()

void Window::setFullScreen ( bool set)
virtual

Asks the Window to enter or leave full screen mode.

Default implementation does nothing.

Parameters
settrue 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.

◆ setFullscreenGeometryRestore()

void Window::setFullscreenGeometryRestore ( const QRectF & geom)
protected

Definition at line 3913 of file window.cpp.

◆ setGeometryRestore()

void Window::setGeometryRestore ( const QRectF & rect)
protected

Sets the geometry of the Window before it was maximized or quick tiled to rect.

Definition at line 4015 of file window.cpp.

◆ setHidden()

void Window::setHidden ( bool hidden)

Definition at line 4242 of file window.cpp.

◆ setHiddenByShowDesktop()

void Window::setHiddenByShowDesktop ( bool hidden)

Definition at line 4262 of file window.cpp.

◆ setIcon()

void Window::setIcon ( const QIcon & icon)
protected

Definition at line 493 of file window.cpp.

◆ setInteractiveMoveOffset()

void KWin::Window::setInteractiveMoveOffset ( const QPointF & offset)
inlineprotected

Definition at line 1599 of file window.h.

◆ setInteractiveMoveResize()

void KWin::Window::setInteractiveMoveResize ( bool enabled)
inlineprotected

Sets whether the Window is in move resize mode to enabled.

Definition at line 1577 of file window.h.

◆ setInteractiveMoveResizeGravity()

void KWin::Window::setInteractiveMoveResizeGravity ( Gravity gravity)
inlineprotected

Definition at line 1620 of file window.h.

◆ setInteractiveMoveResizePointerButtonDown()

void KWin::Window::setInteractiveMoveResizePointerButtonDown ( bool down)
inlineprotected

Definition at line 1628 of file window.h.

◆ setInvertedInteractiveMoveOffset()

void KWin::Window::setInvertedInteractiveMoveOffset ( const QPointF & offset)
inlineprotected

Definition at line 1607 of file window.h.

◆ setKeepAbove()

void Window::setKeepAbove ( bool b)

Definition at line 628 of file window.cpp.

◆ setKeepBelow()

void Window::setKeepBelow ( bool b)

Definition at line 649 of file window.cpp.

◆ setKeyboardGeometryRestore()

void Window::setKeyboardGeometryRestore ( const QRectF & geom)
protected

Definition at line 2939 of file window.cpp.

◆ setLastUsageSerial()

void Window::setLastUsageSerial ( quint32 serial)

Sets the last user usage serial of the surface as serial

Definition at line 4155 of file window.cpp.

◆ setLockScreenOverlay()

void Window::setLockScreenOverlay ( bool allowed)

Definition at line 4172 of file window.cpp.

◆ setMaximize()

void Window::setMaximize ( bool vertically,
bool horizontally )

Sets the maximization according to vertically and horizontally.

Definition at line 1172 of file window.cpp.

◆ setMinimized()

void Window::setMinimized ( bool set)

Definition at line 984 of file window.cpp.

◆ setModal()

void Window::setModal ( bool modal)

Definition at line 2273 of file window.cpp.

◆ setMoveResizeGeometry()

void Window::setMoveResizeGeometry ( const QRectF & geo)
protected

Definition at line 3291 of file window.cpp.

◆ setMoveResizeOutput()

void Window::setMoveResizeOutput ( Output * output)

Definition at line 3302 of file window.cpp.

◆ setNoBorder()

void Window::setNoBorder ( bool set)
virtual

Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.

Definition at line 4034 of file window.cpp.

◆ setOnActivities()

void Window::setOnActivities ( const QStringList & newActivitiesList)

set exactly which activities this window is on

Definition at line 3144 of file window.cpp.

◆ setOnActivity()

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.

◆ setOnAllActivities()

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.

◆ setOnAllDesktops()

void Window::setOnAllDesktops ( bool set)

Definition at line 813 of file window.cpp.

◆ setOpacity()

void Window::setOpacity ( qreal opacity)

Definition at line 196 of file window.cpp.

◆ setOriginalSkipTaskbar()

void Window::setOriginalSkipTaskbar ( bool set)

Definition at line 479 of file window.cpp.

◆ setOutput()

void Window::setOutput ( Output * output)

Definition at line 241 of file window.cpp.

◆ setPendingMoveResizeMode()

void Window::setPendingMoveResizeMode ( MoveResizeMode mode)
inlineprotected

Definition at line 2113 of file window.h.

◆ setQuickTileMode()

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.

Parameters
modeThe tile mode (left/right) to give this window.
keyboardDefines whether to take keyboard cursor into account.

Definition at line 3411 of file window.cpp.

◆ setReadyForPainting

void Window::setReadyForPainting ( )
protectedslot

Definition at line 228 of file window.cpp.

◆ setResourceClass()

void Window::setResourceClass ( const QString & name,
const QString & className = QString() )
protected

Definition at line 184 of file window.cpp.

◆ setShade() [1/2]

void Window::setShade ( bool set)

Definition at line 863 of file window.cpp.

◆ setShade() [2/2]

void Window::setShade ( ShadeMode mode)

Definition at line 868 of file window.cpp.

◆ setShortcut()

void Window::setShortcut ( const QString & cut)

Definition at line 1770 of file useractions.cpp.

◆ setShortcutInternal()

void Window::setShortcutInternal ( )
protectedvirtual

Definition at line 1834 of file useractions.cpp.

◆ setSkipCloseAnimation()

void Window::setSkipCloseAnimation ( bool set)

Definition at line 333 of file window.cpp.

◆ setSkipPager()

void Window::setSkipPager ( bool set)

Definition at line 448 of file window.cpp.

◆ setSkipSwitcher()

void Window::setSkipSwitcher ( bool set)

Definition at line 436 of file window.cpp.

◆ setSkipTaskbar()

void Window::setSkipTaskbar ( bool set)

Definition at line 464 of file window.cpp.

◆ setStackingOrder()

void Window::setStackingOrder ( int order)

Definition at line 361 of file window.cpp.

◆ setSurface()

void Window::setSurface ( SurfaceInterface * surface)

Definition at line 347 of file window.cpp.

◆ setSuspended()

void Window::setSuspended ( bool suspended)

Definition at line 4276 of file window.cpp.

◆ setTile()

void Window::setTile ( Tile * tile)

Definition at line 3547 of file window.cpp.

◆ setTransientFor()

void Window::setTransientFor ( Window * transientFor)

Definition at line 2217 of file window.cpp.

◆ setUnresponsive()

void Window::setUnresponsive ( bool unresponsive)
protected

Definition at line 3060 of file window.cpp.

◆ setUnrestrictedInteractiveMoveResize()

void KWin::Window::setUnrestrictedInteractiveMoveResize ( bool set)
inlineprotected

Sets whether move resize mode is unrestricted to set.

Definition at line 1591 of file window.h.

◆ setupCompositing()

bool Window::setupCompositing ( )
virtual

Reimplemented in KWin::X11Window.

Definition at line 207 of file window.cpp.

◆ setupWindowManagementInterface()

void Window::setupWindowManagementInterface ( )
protected

Definition at line 1792 of file window.cpp.

◆ setupWindowRules()

void Window::setupWindowRules ( )

Definition at line 4080 of file window.cpp.

◆ setVirtualKeyboardGeometry()

void Window::setVirtualKeyboardGeometry ( const QRectF & geo)
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.

◆ shadeableChanged

void KWin::Window::shadeableChanged ( bool )
signal

◆ shadeChanged

void KWin::Window::shadeChanged ( )
signal

◆ shadeHover()

void Window::shadeHover ( )
protected

Definition at line 908 of file window.cpp.

◆ shadeMode()

ShadeMode Window::shadeMode ( ) const

Definition at line 853 of file window.cpp.

◆ shadeUnhover()

void Window::shadeUnhover ( )
protected

Definition at line 914 of file window.cpp.

◆ shadow()

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.

◆ shadowChanged

void KWin::Window::shadowChanged ( )
signal

Emitted whenever the window's shadow changes.

Since
5.15

◆ shortcut()

const QKeySequence & KWin::Window::shortcut ( ) const
inline

Definition at line 979 of file window.h.

◆ shortcutCaptionSuffix()

QString Window::shortcutCaptionSuffix ( ) const
protected

Definition at line 3069 of file window.cpp.

◆ showApplicationMenu()

void Window::showApplicationMenu ( int actionId)

Request showing the application menu bar

Parameters
actionIdThe DBus menu ID of the action that should be highlighted, 0 for the root menu

Definition at line 3045 of file window.cpp.

◆ showContextHelp()

void Window::showContextHelp ( )
virtual

Invokes context help on the window. Only works if the window actually provides context help.

Default implementation does nothing.

See also
providesContextHelp()

Reimplemented in KWin::X11Window.

Definition at line 2807 of file window.cpp.

◆ showOnScreenEdge()

void Window::showOnScreenEdge ( )
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.

◆ shrinkHorizontal()

void Window::shrinkHorizontal ( )

Definition at line 784 of file placement.cpp.

◆ shrinkVertical()

void Window::shrinkVertical ( )

Definition at line 839 of file placement.cpp.

◆ size()

QSizeF Window::size ( ) const
inline

Definition at line 1882 of file window.h.

◆ skipCloseAnimationChanged

void KWin::Window::skipCloseAnimationChanged ( )
signal

◆ skipPager()

bool KWin::Window::skipPager ( ) const
inline

Definition at line 871 of file window.h.

◆ skipPagerChanged

void KWin::Window::skipPagerChanged ( )
signal

◆ skipsCloseAnimation()

bool Window::skipsCloseAnimation ( ) const

Definition at line 328 of file window.cpp.

◆ skipSwitcher()

bool KWin::Window::skipSwitcher ( ) const
inline

Definition at line 854 of file window.h.

◆ skipSwitcherChanged

void KWin::Window::skipSwitcherChanged ( )
signal

◆ skipTaskbar()

bool KWin::Window::skipTaskbar ( ) const
inline

Definition at line 860 of file window.h.

◆ skipTaskbarChanged

void KWin::Window::skipTaskbarChanged ( )
signal

◆ stackingOrder()

int Window::stackingOrder ( ) const

Definition at line 356 of file window.cpp.

◆ stackingOrderChanged

void KWin::Window::stackingOrderChanged ( )
signal

◆ startAutoRaise()

void Window::startAutoRaise ( )
protected

Definition at line 670 of file window.cpp.

◆ startDecorationDoubleClickTimer()

void Window::startDecorationDoubleClickTimer ( )
protected

Definition at line 2792 of file window.cpp.

◆ startDelayedInteractiveMoveResize()

void Window::startDelayedInteractiveMoveResize ( )
protected

Definition at line 1356 of file window.cpp.

◆ startInteractiveMoveResize()

bool Window::startInteractiveMoveResize ( )
protected

Definition at line 1185 of file window.cpp.

◆ startShadeHoverTimer()

void Window::startShadeHoverTimer ( )
protected

Definition at line 920 of file window.cpp.

◆ startShadeUnhoverTimer()

void Window::startShadeUnhoverTimer ( )
protected

Definition at line 931 of file window.cpp.

◆ stopDelayedInteractiveMoveResize()

void Window::stopDelayedInteractiveMoveResize ( )
protected

Definition at line 1372 of file window.cpp.

◆ strutRect()

StrutRect Window::strutRect ( StrutArea area) const
virtual

Reimplemented in KWin::LayerShellV1Window, and KWin::X11Window.

Definition at line 1764 of file window.cpp.

◆ strutRects()

StrutRects Window::strutRects ( ) const

Definition at line 1769 of file window.cpp.

◆ supportsWindowRules()

bool Window::supportsWindowRules ( ) const
virtual

Reimplemented in KWin::X11Window, and KWin::XdgToplevelWindow.

Definition at line 4064 of file window.cpp.

◆ surface()

SurfaceInterface * Window::surface ( ) const

Definition at line 342 of file window.cpp.

◆ surfaceChanged

void KWin::Window::surfaceChanged ( )
signal

Emitted whenever the Surface for this Window changes.

◆ surfaceItem()

SurfaceItem * Window::surfaceItem ( ) const

Definition at line 289 of file window.cpp.

◆ takeFocus()

virtual bool KWin::Window::takeFocus ( )
pure virtual

◆ tile()

Tile * Window::tile ( ) const

Definition at line 3564 of file window.cpp.

◆ tileChanged

void KWin::Window::tileChanged ( KWin::Tile * tile)
signal

This signal is emitted when associated tile has changed, including from and to none

◆ titlebarPosition()

Qt::Edge Window::titlebarPosition ( ) const

Definition at line 953 of file window.cpp.

◆ titlebarPositionUnderMouse()

bool Window::titlebarPositionUnderMouse ( ) const

Definition at line 959 of file window.cpp.

◆ toggleShade()

void Window::toggleShade ( )

Definition at line 947 of file window.cpp.

◆ transientChanged

void KWin::Window::transientChanged ( )
signal

◆ transientFor() [1/2]

Window * KWin::Window::transientFor ( )

◆ transientFor() [2/2]

const Window * Window::transientFor ( ) const

Definition at line 2230 of file window.cpp.

◆ transientPlacement()

QRectF Window::transientPlacement ( ) const
virtual

Only valid id hasTransientPlacementHint is true

Returns
The position the transient wishes to position itself

Reimplemented in KWin::XdgPopupWindow.

Definition at line 2245 of file window.cpp.

◆ transients()

const QList< Window * > & Window::transients ( ) const
inline

Definition at line 2088 of file window.h.

◆ triggerDecorationRepaint()

void Window::triggerDecorationRepaint ( )

Definition at line 2683 of file window.cpp.

◆ unblockGeometryUpdates()

void Window::unblockGeometryUpdates ( )
inlineprotected

Definition at line 2103 of file window.h.

◆ unref()

void Window::unref ( )

Definition at line 118 of file window.cpp.

◆ unrefOffscreenRendering()

void Window::unrefOffscreenRendering ( )

Definition at line 4194 of file window.cpp.

◆ unresponsive()

bool Window::unresponsive ( ) const

Definition at line 3055 of file window.cpp.

◆ unresponsiveChanged

void KWin::Window::unresponsiveChanged ( bool )
signal

◆ updateActivities()

void Window::updateActivities ( bool includeTransients)
virtual

update after activities changed

Reimplemented in KWin::X11Window.

Definition at line 3208 of file window.cpp.

◆ updateApplicationMenuObjectPath()

void Window::updateApplicationMenuObjectPath ( const QString & objectPath)
protected

Definition at line 3023 of file window.cpp.

◆ updateApplicationMenuServiceName()

void Window::updateApplicationMenuServiceName ( const QString & serviceName)
protected

Definition at line 3009 of file window.cpp.

◆ updateCaption()

virtual void KWin::Window::updateCaption ( )
protectedpure virtual

◆ updateColorScheme()

void Window::updateColorScheme ( )
protected

Definition at line 1053 of file window.cpp.

◆ updateCursor()

void Window::updateCursor ( )
protected

Sets an appropriate cursor shape for the logical mouse position.

Definition at line 2376 of file window.cpp.

◆ updateDecorationInputShape()

void Window::updateDecorationInputShape ( )
protected

Definition at line 2658 of file window.cpp.

◆ updateElectricGeometryRestore()

void Window::updateElectricGeometryRestore ( )
protected

Definition at line 3382 of file window.cpp.

◆ updateInteractiveMoveResize()

void Window::updateInteractiveMoveResize ( const QPointF & currentGlobalCursor)

Definition at line 1378 of file window.cpp.

◆ updateLayer()

void Window::updateLayer ( )

Definition at line 560 of file window.cpp.

◆ updateMouseGrab()

void Window::updateMouseGrab ( )
virtual

Reimplemented in KWin::X11Window.

Definition at line 422 of file window.cpp.

◆ updateQuickTileMode()

void KWin::Window::updateQuickTileMode ( QuickTileMode newMode)
inlineprotected

Definition at line 1539 of file window.h.

◆ updateShadow()

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.

◆ updateWindowRules()

void Window::updateWindowRules ( Rules::Types selection)
virtual

Reimplemented in KWin::X11Window.

Definition at line 4087 of file window.cpp.

◆ userCanSetNoBorder()

bool Window::userCanSetNoBorder ( ) const
virtual

Reimplemented in KWin::InternalWindow, KWin::X11Window, and KWin::XdgToplevelWindow.

Definition at line 4029 of file window.cpp.

◆ userTime()

xcb_timestamp_t Window::userTime ( ) const
virtual

Reimplemented in KWin::X11Window.

Definition at line 431 of file window.cpp.

◆ virtualKeyboardGeometry()

QRectF Window::virtualKeyboardGeometry ( ) const
Returns
the geometry of the virtual keyboard This geometry is in global coordinates

Definition at line 2895 of file window.cpp.

◆ visibleGeometry()

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.

◆ visibleGeometryChanged

void KWin::Window::visibleGeometryChanged ( )
signal

This signal is emitted when the visible geometry has changed.

◆ wantsAdaptiveSync()

bool Window::wantsAdaptiveSync ( ) const

Definition at line 3957 of file window.cpp.

◆ wantsInput()

virtual bool KWin::Window::wantsInput ( ) const
pure virtual

◆ wantsShadowToBeRendered()

bool Window::wantsShadowToBeRendered ( ) const

Whether the Window currently wants the shadow to be rendered.

Definition at line 297 of file window.cpp.

◆ wantsTabFocus()

bool Window::wantsTabFocus ( ) const

Definition at line 697 of file window.cpp.

◆ width()

qreal Window::width ( ) const
inline

Definition at line 1902 of file window.h.

◆ windowClassChanged

void KWin::Window::windowClassChanged ( )
signal

Emitted whenever the window class name or resource name of the window changes.

Since
5.0

◆ windowHidden

void KWin::Window::windowHidden ( KWin::Window * window)
signal

◆ windowItem()

WindowItem * Window::windowItem ( ) const
inline

Definition at line 2027 of file window.h.

◆ windowManagementInterface()

PlasmaWindowInterface * KWin::Window::windowManagementInterface ( ) const
inline

Return window management interface

Definition at line 1307 of file window.h.

◆ windowRole()

QString Window::windowRole ( ) const
virtual

Reimplemented in KWin::InternalWindow, KWin::WaylandWindow, and KWin::X11Window.

Definition at line 369 of file window.cpp.

◆ windowRoleChanged

void KWin::Window::windowRoleChanged ( )
signal

Emitted whenever the window role of the window changes.

Since
5.0

◆ windowShown

void KWin::Window::windowShown ( KWin::Window * window)
signal

◆ windowType()

virtual NET::WindowType KWin::Window::windowType ( ) const
pure virtual

◆ wmClientMachine()

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.

◆ x()

qreal Window::x ( ) const
inline

Definition at line 1892 of file window.h.

◆ y()

qreal Window::y ( ) const
inline

Definition at line 1897 of file window.h.

Friends And Related Symbol Documentation

◆ GeometryUpdatesBlocker

friend class GeometryUpdatesBlocker
friend

Definition at line 1792 of file window.h.

Member Data Documentation

◆ _shortcut

QKeySequence KWin::Window::_shortcut
protected

Definition at line 1833 of file window.h.

◆ buttonDown

bool KWin::Window::buttonDown = false

Definition at line 1809 of file window.h.

◆ client

QPointer<Decoration::DecoratedClientImpl> KWin::Window::client

Definition at line 1821 of file window.h.

◆ counter

uint32_t KWin::Window::counter = 0

Definition at line 1813 of file window.h.

◆ cursor

CursorShape KWin::Window::cursor = Qt::ArrowCursor

Definition at line 1810 of file window.h.

◆ decoration

std::shared_ptr<KDecoration2::Decoration> KWin::Window::decoration

Definition at line 1820 of file window.h.

◆ delayedTimer

QTimer* KWin::Window::delayedTimer = nullptr

Definition at line 1812 of file window.h.

◆ doubleClickTimer

QElapsedTimer KWin::Window::doubleClickTimer

Definition at line 1822 of file window.h.

◆ enabled

bool KWin::Window::enabled = false

Definition at line 1802 of file window.h.

◆ gravity

Gravity KWin::Window::gravity = Gravity::None

Definition at line 1808 of file window.h.

◆ initialGeometry

QRectF KWin::Window::initialGeometry

Definition at line 1806 of file window.h.

◆ initialGeometryRestore

QRectF KWin::Window::initialGeometryRestore

Definition at line 1807 of file window.h.

◆ initialMaximizeMode

MaximizeMode KWin::Window::initialMaximizeMode

Definition at line 1814 of file window.h.

◆ initialQuickTileMode

QuickTileMode KWin::Window::initialQuickTileMode

Definition at line 1815 of file window.h.

◆ inputRegion

QRegion KWin::Window::inputRegion

Definition at line 1823 of file window.h.

◆ invertedOffset

QPointF KWin::Window::invertedOffset

Definition at line 1805 of file window.h.

◆ m_active

bool KWin::Window::m_active = false
protected

Definition at line 1752 of file window.h.

◆ m_activityList

QStringList KWin::Window::m_activityList
protected

Definition at line 1764 of file window.h.

◆ m_activityUpdatesBlocked

int KWin::Window::m_activityUpdatesBlocked = 0
protected

Definition at line 1765 of file window.h.

◆ m_applicationMenuActive

bool KWin::Window::m_applicationMenuActive = false
protected

Definition at line 1827 of file window.h.

◆ m_applicationMenuObjectPath

QString KWin::Window::m_applicationMenuObjectPath
protected

Definition at line 1829 of file window.h.

◆ m_applicationMenuServiceName

QString KWin::Window::m_applicationMenuServiceName
protected

Definition at line 1828 of file window.h.

◆ m_autoRaiseTimer

QTimer* KWin::Window::m_autoRaiseTimer = nullptr
protected

Definition at line 1759 of file window.h.

◆ m_blockedActivityUpdatesRequireTransients

bool KWin::Window::m_blockedActivityUpdatesRequireTransients = false
protected

Definition at line 1766 of file window.h.

◆ m_blockGeometryUpdates

int KWin::Window::m_blockGeometryUpdates = 0
protected

Definition at line 1790 of file window.h.

◆ m_bufferGeometry

QRectF KWin::Window::m_bufferGeometry
protected

Definition at line 1727 of file window.h.

◆ m_clientGeometry

QRectF KWin::Window::m_clientGeometry
protected

Definition at line 1726 of file window.h.

◆ m_clientMachine

ClientMachine* KWin::Window::m_clientMachine
protected

Definition at line 1738 of file window.h.

◆ m_colorScheme

QString KWin::Window::m_colorScheme
protected

Definition at line 1768 of file window.h.

◆ [struct]

struct { ... } KWin::Window::m_decoration

◆ m_deleted

bool KWin::Window::m_deleted = false
protected

Definition at line 1753 of file window.h.

◆ m_demandsAttention

bool KWin::Window::m_demandsAttention = false
protected

Definition at line 1756 of file window.h.

◆ m_desktopFileName

QString KWin::Window::m_desktopFileName
protected

Definition at line 1825 of file window.h.

◆ m_desktops

QList<VirtualDesktop *> KWin::Window::m_desktops
protected

Definition at line 1762 of file window.h.

◆ m_electricGeometryRestore

QRectF KWin::Window::m_electricGeometryRestore
protected

Definition at line 1783 of file window.h.

◆ m_electricMaximizing

bool KWin::Window::m_electricMaximizing = false
protected

Definition at line 1784 of file window.h.

◆ m_electricMaximizingDelay

QTimer* KWin::Window::m_electricMaximizingDelay = nullptr
protected

Definition at line 1787 of file window.h.

◆ m_electricMode

QuickTileMode KWin::Window::m_electricMode = QuickTileFlag::None
protected

Definition at line 1782 of file window.h.

◆ m_frameGeometry

QRectF KWin::Window::m_frameGeometry
protected

Definition at line 1725 of file window.h.

◆ m_fullscreenGeometryRestore

QRectF KWin::Window::m_fullscreenGeometryRestore
protected

Definition at line 1797 of file window.h.

◆ m_hidden

bool KWin::Window::m_hidden = false
protected

Definition at line 1729 of file window.h.

◆ m_hiddenByShowDesktop

bool KWin::Window::m_hiddenByShowDesktop = false
protected

Definition at line 1730 of file window.h.

◆ m_icon

QIcon KWin::Window::m_icon
protected

Definition at line 1751 of file window.h.

◆ [struct]

struct { ... } KWin::Window::m_interactiveMoveResize

◆ m_internalId

QUuid KWin::Window::m_internalId
protected

Definition at line 1733 of file window.h.

◆ m_keepAbove

bool KWin::Window::m_keepAbove = false
protected

Definition at line 1754 of file window.h.

◆ m_keepBelow

bool KWin::Window::m_keepBelow = false
protected

Definition at line 1755 of file window.h.

◆ m_keyboardGeometryRestore

QRectF KWin::Window::m_keyboardGeometryRestore
protected

Definition at line 1795 of file window.h.

◆ m_lastUsageSerial

quint32 KWin::Window::m_lastUsageSerial = 0
protected

Definition at line 1836 of file window.h.

◆ m_layer

Layer KWin::Window::m_layer = UnknownLayer
protected

Definition at line 1778 of file window.h.

◆ m_lockScreenOverlay

bool KWin::Window::m_lockScreenOverlay = false
protected

Definition at line 1837 of file window.h.

◆ m_maximizeGeometryRestore

QRectF KWin::Window::m_maximizeGeometryRestore
protected

Definition at line 1796 of file window.h.

◆ m_minimized

bool KWin::Window::m_minimized = false
protected

Definition at line 1757 of file window.h.

◆ m_modal

bool KWin::Window::m_modal = false
protected

Definition at line 1777 of file window.h.

◆ m_moveResizeGeometry

QRectF KWin::Window::m_moveResizeGeometry
protected

Definition at line 1794 of file window.h.

◆ m_moveResizeOutput

Output* KWin::Window::m_moveResizeOutput
protected

Definition at line 1793 of file window.h.

◆ m_offscreenFramecallbackTimer

QTimer KWin::Window::m_offscreenFramecallbackTimer
protected

Definition at line 1839 of file window.h.

◆ m_offscreenRenderCount

uint32_t KWin::Window::m_offscreenRenderCount = 0
protected

Definition at line 1838 of file window.h.

◆ m_opacity

qreal KWin::Window::m_opacity = 1.0
protected

Definition at line 1741 of file window.h.

◆ m_originalSkipTaskbar

bool KWin::Window::m_originalSkipTaskbar = false
protected

Unaffected by KWin

Definition at line 1748 of file window.h.

◆ m_output

Output* KWin::Window::m_output = nullptr
protected

Definition at line 1724 of file window.h.

◆ m_palette

std::shared_ptr<Decoration::DecorationPalette> KWin::Window::m_palette
protected

Definition at line 1769 of file window.h.

◆ m_pendingMoveResizeMode

MoveResizeMode KWin::Window::m_pendingMoveResizeMode = MoveResizeMode::None
protected

Definition at line 1791 of file window.h.

◆ m_quickTileMode

int KWin::Window::m_quickTileMode = int(QuickTileFlag::None)
protected

Definition at line 1786 of file window.h.

◆ m_refCount

int KWin::Window::m_refCount = 1
protected

Definition at line 1732 of file window.h.

◆ m_rules

WindowRules KWin::Window::m_rules
protected

Definition at line 1835 of file window.h.

◆ m_shadeHoverTimer

QTimer* KWin::Window::m_shadeHoverTimer = nullptr
protected

Definition at line 1760 of file window.h.

◆ m_shadeMode

ShadeMode KWin::Window::m_shadeMode = ShadeNone
protected

Definition at line 1761 of file window.h.

◆ m_shadow

std::unique_ptr<Shadow> KWin::Window::m_shadow
protected

Definition at line 1735 of file window.h.

◆ m_skipCloseAnimation

bool KWin::Window::m_skipCloseAnimation
protected

Definition at line 1739 of file window.h.

◆ m_skipPager

bool KWin::Window::m_skipPager = false
protected

Definition at line 1749 of file window.h.

◆ m_skipSwitcher

bool KWin::Window::m_skipSwitcher = false
protected

Definition at line 1750 of file window.h.

◆ m_skipTaskbar

bool KWin::Window::m_skipTaskbar = false
protected

Definition at line 1744 of file window.h.

◆ m_stackingOrder

int KWin::Window::m_stackingOrder = 0
protected

Definition at line 1742 of file window.h.

◆ m_surface

QPointer<SurfaceInterface> KWin::Window::m_surface
protected

Definition at line 1740 of file window.h.

◆ m_suspended

bool KWin::Window::m_suspended = false
protected

Definition at line 1758 of file window.h.

◆ m_tile

QPointer<Tile> KWin::Window::m_tile
protected

Definition at line 1779 of file window.h.

◆ m_transientFor

Window* KWin::Window::m_transientFor = nullptr
protected

Definition at line 1775 of file window.h.

◆ m_transients

QList<Window *> KWin::Window::m_transients
protected

Definition at line 1776 of file window.h.

◆ m_unresponsive

bool KWin::Window::m_unresponsive = false
protected

Definition at line 1831 of file window.h.

◆ m_virtualKeyboardGeometry

QRectF KWin::Window::m_virtualKeyboardGeometry
protected

Definition at line 1798 of file window.h.

◆ m_windowItem

std::unique_ptr<WindowItem> KWin::Window::m_windowItem
protected

Definition at line 1734 of file window.h.

◆ m_windowManagementInterface

PlasmaWindowInterface* KWin::Window::m_windowManagementInterface = nullptr
protected

Definition at line 1773 of file window.h.

◆ offset

QPointF KWin::Window::offset

Definition at line 1804 of file window.h.

◆ ready_for_painting

bool KWin::Window::ready_for_painting
protected

Definition at line 1728 of file window.h.

◆ resource_class

QString KWin::Window::resource_class
protected

Definition at line 1737 of file window.h.

◆ resource_name

QString KWin::Window::resource_name
protected

Definition at line 1736 of file window.h.

◆ s_defaultPalette

std::shared_ptr< Decoration::DecorationPalette > Window::s_defaultPalette
staticprotected

Definition at line 1771 of file window.h.

◆ s_palettes

QHash< QString, std::weak_ptr< Decoration::DecorationPalette > > Window::s_palettes
staticprotected

Definition at line 1770 of file window.h.

◆ startOutput

Output* KWin::Window::startOutput = nullptr

Definition at line 1811 of file window.h.

◆ unrestricted

bool KWin::Window::unrestricted = false

Definition at line 1803 of file window.h.

Property Documentation

◆ active

bool KWin::Window::active
read

Whether this Window is active or not. Use Workspace::activateWindow() to activate a Window.

See also
Workspace::activateWindow

Definition at line 290 of file window.h.

◆ activities

QStringList KWin::Window::activities
readwrite

The activities this client is on. If it's on all activities the property is empty.

Definition at line 305 of file window.h.

◆ appletPopup

bool KWin::Window::appletPopup
read

Returns whether the window is an applet popup.

Definition at line 201 of file window.h.

◆ applicationMenuActive

bool KWin::Window::applicationMenuActive
read

Whether the application menu for this Window is currently opened

Definition at line 511 of file window.h.

◆ bufferGeometry

QRectF KWin::Window::bufferGeometry
read

This property holds rectangle that the pixmap or buffer of this Window occupies on the screen. This rectangle includes invisible portions of the window, e.g. client-side drop shadows, etc.

Definition at line 69 of file window.h.

◆ caption

QString KWin::Window::caption
read

The Caption of the Window. Read from WM_NAME property together with a suffix for hostname and shortcut. To read only the caption as provided by WM_NAME, use the getter with an additional false value.

Definition at line 392 of file window.h.

◆ clientGeometry

QRectF KWin::Window::clientGeometry
read

The geometry of the Window without frame borders.

Definition at line 74 of file window.h.

◆ closeable

bool KWin::Window::closeable
read

Whether the window can be closed by the user.

Definition at line 325 of file window.h.

◆ colorScheme

QString KWin::Window::colorScheme
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.

Note
this indicates the colour scheme requested, which might differ from the theme applied if the colorScheme cannot be found

Definition at line 527 of file window.h.

◆ comboBox

bool KWin::Window::comboBox
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 .

Definition at line 212 of file window.h.

◆ criticalNotification

bool KWin::Window::criticalNotification
read

Returns whether the window is a window with a critical notification.

Definition at line 196 of file window.h.

◆ decorationHasAlpha

bool KWin::Window::decorationHasAlpha
read

Whether the decoration is currently using an alpha channel.

Definition at line 448 of file window.h.

◆ deleted

bool KWin::Window::deleted
read

Whether this Window represents an already deleted window and only kept for the compositor for animations.

Definition at line 235 of file window.h.

◆ demandsAttention

bool KWin::Window::demandsAttention
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).

Definition at line 386 of file window.h.

◆ desktopFileName

QString KWin::Window::desktopFileName
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.

Definition at line 501 of file window.h.

◆ desktops

QList<KWin::VirtualDesktop *> KWin::Window::desktops
readwrite

The virtual desktops this client is on. If it's on all desktops, the list is empty.

Definition at line 295 of file window.h.

◆ desktopWindow

bool KWin::Window::desktopWindow
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 .

Definition at line 122 of file window.h.

◆ dialog

bool KWin::Window::dialog
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 .

Definition at line 153 of file window.h.

◆ dndIcon

bool KWin::Window::dndIcon
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 .

Definition at line 218 of file window.h.

◆ dock

bool KWin::Window::dock
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 .

Definition at line 128 of file window.h.

◆ dropdownMenu

bool KWin::Window::dropdownMenu
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 .

Definition at line 173 of file window.h.

◆ frameGeometry

QRectF KWin::Window::frameGeometry
readwrite

The geometry of this Window. Be aware that depending on resize mode the frameGeometryChanged signal might be emitted at each resize step or only at the end of the resize operation.

Definition at line 431 of file window.h.

◆ fullScreen

bool KWin::Window::fullScreen
readwrite

Whether this Window is fullScreen. A Window might either be fullScreen due to the _NET_WM property or through a legacy support hack. The fullScreen state can only be changed if the Window does not use the legacy hack. To be sure whether the state changed, connect to the notify signal.

Definition at line 278 of file window.h.

◆ fullScreenable

bool KWin::Window::fullScreenable
read

Whether the Window can be set to fullScreen. The property is evaluated each time it is invoked. Because of that there is no notify signal.

Definition at line 284 of file window.h.

◆ hasApplicationMenu

bool KWin::Window::hasApplicationMenu
read

Whether an application menu is available for this Window

Definition at line 506 of file window.h.

◆ height

qreal KWin::Window::height
read

This property holds the height of the Window's frame geometry.

Definition at line 104 of file window.h.

◆ hidden

bool KWin::Window::hidden
read

Whether this window is hidden. It's usually the case with auto-hide panels.

Definition at line 534 of file window.h.

◆ icon

QIcon KWin::Window::icon
read

Definition at line 327 of file window.h.

◆ iconGeometry

QRectF KWin::Window::iconGeometry
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.

Definition at line 367 of file window.h.

◆ inputMethod

bool KWin::Window::inputMethod
read

Returns whether this window is a input method window. This is only used for Wayland.

Definition at line 545 of file window.h.

◆ internalId

QUuid KWin::Window::internalId
read

This property holds a UUID to uniquely identify this Window.

Definition at line 259 of file window.h.

◆ keepAbove

bool KWin::Window::keepAbove
readwrite

Whether the Window is set to be kept above other windows.

Definition at line 332 of file window.h.

◆ keepBelow

bool KWin::Window::keepBelow
readwrite

Whether the Window is set to be kept below other windows.

Definition at line 337 of file window.h.

◆ layer

KWin::Layer KWin::Window::layer
read

Definition at line 529 of file window.h.

◆ managed

bool KWin::Window::managed
read

Whether this Window is managed by KWin (it has control over its placement and other aspects, as opposed to override-redirect windows that are entirely handled by the application).

Definition at line 230 of file window.h.

◆ maximizable

bool KWin::Window::maximizable
read

Whether the Window can be maximized both horizontally and vertically. The property is evaluated each time it is invoked. Because of that there is no notify signal.

Definition at line 469 of file window.h.

◆ maxSize

QSizeF KWin::Window::maxSize
read

Maximum size as specified in WM_NORMAL_HINTS

Definition at line 402 of file window.h.

◆ menu

bool KWin::Window::menu
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 .

Definition at line 140 of file window.h.

◆ minimizable

bool KWin::Window::minimizable
read

Whether the Window can be minimized. The property is evaluated each time it is invoked. Because of that there is no notify signal.

Definition at line 354 of file window.h.

◆ minimized

bool KWin::Window::minimized
readwrite

Whether the Window is minimized.

Definition at line 359 of file window.h.

◆ minSize

QSizeF KWin::Window::minSize
read

Minimum size as specified in WM_NORMAL_HINTS

Definition at line 397 of file window.h.

◆ modal

bool KWin::Window::modal
read

Whether the Window represents a modal window.

Definition at line 425 of file window.h.

◆ move

bool KWin::Window::move
read

Whether the Window is currently being moved by the user. Notify signal is emitted when the Window starts or ends move/resize mode.

Definition at line 437 of file window.h.

◆ moveable

bool KWin::Window::moveable
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.

See also
moveableAcrossScreens

Definition at line 477 of file window.h.

◆ moveableAcrossScreens

bool KWin::Window::moveableAcrossScreens
read

Whether the Window can be moved to another screen. The property is evaluated each time it is invoked. Because of that there is no notify signal.

See also
moveable

Definition at line 484 of file window.h.

◆ noBorder

bool KWin::Window::noBorder
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.

Definition at line 456 of file window.h.

◆ normalWindow

bool KWin::Window::normalWindow
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 .

Definition at line 147 of file window.h.

◆ notification

bool KWin::Window::notification
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 .

Definition at line 191 of file window.h.

◆ onAllDesktops

bool KWin::Window::onAllDesktops
readwrite

Whether the Window is on all desktops. That is desktop is -1.

Definition at line 300 of file window.h.

◆ onScreenDisplay

bool KWin::Window::onScreenDisplay
read

Returns whether the window is an On Screen Display.

Definition at line 206 of file window.h.

◆ opacity

qreal KWin::Window::opacity
readwrite

Definition at line 106 of file window.h.

◆ outline

bool KWin::Window::outline
read

Whether this Window represents the outline.

Note
It's always false if compositing is turned off.

Definition at line 254 of file window.h.

◆ output

KWin::Output * KWin::Window::output
read

The output where the window center is on

Definition at line 111 of file window.h.

◆ pid

int KWin::Window::pid
read

The pid of the process owning this window.

Since
5.20

Definition at line 266 of file window.h.

◆ popupMenu

bool KWin::Window::popupMenu
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 .

Definition at line 179 of file window.h.

◆ popupWindow

bool KWin::Window::popupWindow
read

Whether the window is a popup.

Definition at line 247 of file window.h.

◆ pos

QPointF KWin::Window::pos
read

This property holds the position of the Window's frame geometry.

Definition at line 79 of file window.h.

◆ providesContextHelp

bool KWin::Window::providesContextHelp
read

Whether the Window provides context help. Mostly needed by decorations to decide whether to show the help button or not.

Definition at line 462 of file window.h.

◆ rect

QRectF KWin::Window::rect
read

Definition at line 113 of file window.h.

◆ resize

bool KWin::Window::resize
read

Whether the Window is currently being resized by the user. Notify signal is emitted when the Window starts or ends move/resize mode.

Definition at line 443 of file window.h.

◆ resizeable

bool KWin::Window::resizeable
read

Whether the Window can be resized. The property is evaluated each time it is invoked. Because of that there is no notify signal.

Definition at line 490 of file window.h.

◆ resourceClass

QString KWin::Window::resourceClass
read

Definition at line 115 of file window.h.

◆ resourceName

QString KWin::Window::resourceName
read

Definition at line 114 of file window.h.

◆ shade

bool KWin::Window::shade
readwrite

Whether the Window is shaded.

Definition at line 348 of file window.h.

◆ shadeable

bool KWin::Window::shadeable
read

Whether the Window can be shaded. The property is evaluated each time it is invoked. Because of that there is no notify signal.

Definition at line 343 of file window.h.

◆ size

QSizeF KWin::Window::size
read

This property holds the size of the Window's frame geometry.

Definition at line 84 of file window.h.

◆ skipPager

bool KWin::Window::skipPager
readwrite

Indicates that the window should not be included on a Pager.

Definition at line 315 of file window.h.

◆ skipsCloseAnimation

bool KWin::Window::skipsCloseAnimation
readwrite

Whether the window does not want to be animated on window close. There are legit reasons for this like a screenshot application which does not want it's window being captured.

Definition at line 242 of file window.h.

◆ skipSwitcher

bool KWin::Window::skipSwitcher
readwrite

Whether the Window should be excluded from window switching effects.

Definition at line 320 of file window.h.

◆ skipTaskbar

bool KWin::Window::skipTaskbar
readwrite

Indicates that the window should not be included on a taskbar.

Definition at line 310 of file window.h.

◆ specialWindow

bool KWin::Window::specialWindow
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.

Definition at line 376 of file window.h.

◆ splash

bool KWin::Window::splash
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 .

Definition at line 160 of file window.h.

◆ stackingOrder

int KWin::Window::stackingOrder
read

The position of this window within Workspace's window stack.

Definition at line 271 of file window.h.

◆ tile

KWin::Tile * KWin::Window::tile
readwrite

The Tile this window is associated to, if any

Definition at line 539 of file window.h.

◆ toolbar

bool KWin::Window::toolbar
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 .

Definition at line 134 of file window.h.

◆ tooltip

bool KWin::Window::tooltip
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 .

Definition at line 185 of file window.h.

◆ transient

bool KWin::Window::transient
read

Whether the Window is a transient Window to another Window.

See also
transientFor

Definition at line 415 of file window.h.

◆ transientFor

Window * Window::transientFor
read

The Window to which this Window is a transient if any.

Definition at line 420 of file window.h.

◆ unresponsive

bool KWin::Window::unresponsive
read

Whether this window is unresponsive.

When an application failed to react on a ping request in time, it is considered unresponsive. This usually indicates that the application froze or crashed.

Definition at line 519 of file window.h.

◆ utility

bool KWin::Window::utility
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 .

Definition at line 166 of file window.h.

◆ wantsInput

bool KWin::Window::wantsInput
read

Whether the Window can accept keyboard focus. The value is evaluated each time the getter is called. Because of that no changed signal is provided.

Definition at line 409 of file window.h.

◆ width

qreal KWin::Window::width
read

This property holds the width of the Window's frame geometry.

Definition at line 99 of file window.h.

◆ windowRole

QString KWin::Window::windowRole
read

Definition at line 116 of file window.h.

◆ windowType

int KWin::Window::windowType
read

Returns the NETWM window type See https://standards.freedesktop.org/wm-spec/wm-spec-latest.html .

Definition at line 224 of file window.h.

◆ x

qreal KWin::Window::x
read

This property holds the x position of the Window's frame geometry.

Definition at line 89 of file window.h.

◆ y

qreal KWin::Window::y
read

This property holds the y position of the Window's frame geometry.

Definition at line 94 of file window.h.


The documentation for this class was generated from the following files: