KWin
Loading...
Searching...
No Matches
Classes | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
KWin::X11Window Class Reference

#include <x11window.h>

Inheritance diagram for KWin::X11Window:
KWin::Window

Classes

struct  SyncRequest
 

Public Slots

void closeWindow () override
 
void updateCaption () override
 
- Public Slots inherited from KWin::Window
virtual void closeWindow ()=0
 

Signals

void shapeChanged ()
 
- Signals inherited from KWin::Window
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

 X11Window ()
 
 ~X11Window () override
 Use destroyWindow() or releaseWindow()
 
xcb_window_t frameId () const
 
xcb_window_t window () const
 
xcb_window_t wrapperId () const
 
xcb_window_t inputId () const
 
int desktopId () const
 
QByteArray sessionId () const
 
xcb_window_t wmClientLeader () const
 
QString wmCommand ()
 
QPointF framePosToClientPos (const QPointF &point) const override
 
QPointF clientPosToFramePos (const QPointF &point) const override
 
QSizeF frameSizeToClientSize (const QSizeF &size) const override
 
QSizeF clientSizeToFrameSize (const QSizeF &size) const override
 
QRectF frameRectToBufferRect (const QRectF &rect) const
 
QPointF wrapperPos () const
 
QSizeF implicitSize () const
 
xcb_visualid_t visual () const
 
int depth () const
 
bool hasAlpha () const
 
QRegion opaqueRegion () const
 
QList< QRectF > shapeRegion () const
 
pid_t pid () const override
 
QString windowRole () const override
 
bool isTransient () const override
 
bool groupTransient () const override
 
QList< Window * > mainWindows () const override
 
bool hasTransient (const Window *c, bool indirect) const override
 
void checkTransient (xcb_window_t w)
 
WindowfindModal (bool allow_itself=false) override
 
const Groupgroup () const override
 
Groupgroup () override
 
void checkGroup (Group *gr=nullptr, bool force=false)
 
void changeClientLeaderGroup (Group *gr)
 
bool supportsWindowRules () const override
 
void updateWindowRules (Rules::Types selection) override
 
void applyWindowRules () override
 
void updateFullscreenMonitors (NETFullscreenMonitors topology)
 
bool hasNETSupport () const
 
QSizeF minSize () const override
 
QSizeF maxSize () const override
 
QSizeF basicUnit () const
 
QPointF inputPos () const
 
bool windowEvent (xcb_generic_event_t *e)
 
NET::WindowType windowType () const override
 
bool track (xcb_window_t w)
 
bool manage (xcb_window_t w, bool isMapped)
 
void releaseWindow (bool on_shutdown=false)
 
bool hasScheduledRelease () const
 
void destroyWindow () override
 
QStringList activities () const override
 
void doSetOnActivities (const QStringList &newActivitiesList) override
 
void updateActivities (bool includeTransients) override
 
bool isShadeable () const override
 
bool isMaximizable () const override
 
MaximizeMode maximizeMode () const override
 
void maximize (MaximizeMode mode) override
 
bool isMinimizable () const override
 
QRectF iconGeometry () const override
 
bool isFullScreenable () const override
 
void setFullScreen (bool set) override
 
bool isFullScreen () const override
 
int fullScreenMode () const
 
bool userNoBorder () const
 
bool noBorder () const override
 
void setNoBorder (bool set) override
 
bool userCanSetNoBorder () const override
 
void checkNoBorder () override
 
void checkActivities () override
 
int sessionStackingOrder () const
 
bool wantsInput () const override
 
bool isResizable () const override
 
bool isMovable () const override
 
bool isMovableAcrossScreens () const override
 
bool isCloseable () const override
 May be closed by the user (May have a close button)
 
bool takeFocus () override
 
void invalidateDecoration () override
 
void detectShape ()
 
void updateShape ()
 
QRectF resizeWithChecks (const QRectF &geometry, const QSizeF &size) override
 resizeWithChecks() resizes according to gravity, and checks workarea position
 
QRectF resizeWithChecks (const QRectF &geometry, qreal w, qreal h, xcb_gravity_t gravity)
 
QRectF resizeWithChecks (const QRectF &geometry, const QSizeF &s, xcb_gravity_t gravity)
 
QSizeF constrainClientSize (const QSizeF &size, SizeMode mode=SizeModeAny) const override
 
bool providesContextHelp () const override
 
void updateVisibility ()
 Updates visibility depending on being shaded, virtual desktop, etc.
 
bool hiddenPreview () const
 Window is mapped in order to get a window pixmap.
 
bool setupCompositing () override
 
void finishCompositing () override
 
void setBlockingCompositing (bool block)
 
void blockCompositing ()
 
void unblockCompositing ()
 
QString captionNormal () const override
 
QString captionSuffix () const override
 
void keyPressEvent (uint key_code, xcb_timestamp_t time)
 
void updateMouseGrab () override
 
xcb_window_t moveResizeGrabWindow () const
 
QPointF gravityAdjustment (xcb_gravity_t gravity) const
 
const QPointF calculateGravitation (bool invert) const
 
void NETMoveResize (qreal x_root, qreal y_root, NET::Direction direction, xcb_button_t button)
 
void NETMoveResizeWindow (int flags, qreal x, qreal y, qreal width, qreal height)
 
void GTKShowWindowMenu (qreal x_root, qreal y_root)
 
void restackWindow (xcb_window_t above, int detail, NET::RequestSource source, xcb_timestamp_t timestamp, bool send_event=false)
 
void gotPing (xcb_timestamp_t timestamp)
 
void updateUserTime (xcb_timestamp_t time=XCB_TIME_CURRENT_TIME)
 
xcb_timestamp_t userTime () const override
 
bool hasUserTimeSupport () const
 
void killWindow () override
 
void showContextHelp () override
 
void checkActiveModal ()
 
StrutRect strutRect (StrutArea area) const override
 
bool hasStrut () const override
 
bool isClientSideDecorated () const
 
Xcb::StringProperty fetchPreferredColorScheme () const
 
QString readPreferredColorScheme (Xcb::StringProperty &property) const
 
QString preferredColorScheme () const override
 
void setSessionActivityOverride (bool needed)
 
bool isClient () const override
 
bool isOutline () const override
 
bool isUnmanaged () const override
 
void cancelFocusOutTimer ()
 
void showOnScreenEdge () override
 
Xcb::StringProperty fetchApplicationMenuServiceName () const
 
void readApplicationMenuServiceName (Xcb::StringProperty &property)
 
void checkApplicationMenuServiceName ()
 
Xcb::StringProperty fetchApplicationMenuObjectPath () const
 
void readApplicationMenuObjectPath (Xcb::StringProperty &property)
 
void checkApplicationMenuObjectPath ()
 
const SyncRequestsyncRequest () const
 
bool wantsSyncCounter () const
 
void handleSync ()
 
void handleSyncTimeout ()
 
bool allowWindowActivation (xcb_timestamp_t time=-1U, bool focus_in=false)
 
quint64 surfaceSerial () const
 
quint32 pendingSurfaceId () const
 
void keyPressEvent (uint key_code)
 
- Public Member Functions inherited from KWin::Window
 ~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
 
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
 
QRectF frameRectToClientRect (const QRectF &rect) const
 
QRectF clientRectToFrameRect (const QRectF &rect) 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 ()
 
void keepInArea (QRectF area, bool partial=false)
 
QRectF keepInArea (QRectF geometry, QRectF area, bool partial=false)
 
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 isInternal () const
 
virtual bool isPopupWindow () const
 
bool isDeleted () 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)
 
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)
 
void blockActivityUpdates (bool b=true)
 
QString resourceName () const
 
QString resourceClass () const
 
QString wmClientMachine (bool use_localhost) const
 
ClientMachineclientMachine () const
 
virtual bool isLocalhost () const
 
bool readyForPainting () const
 
void setOpacity (qreal opacity)
 
qreal opacity () const
 
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 ()
 
QString caption () const
 
virtual bool isPlaceable () const
 
bool isShown () const
 
bool isHidden () const
 
void setHidden (bool hidden)
 
bool isHiddenByShowDesktop () const
 
void setHiddenByShowDesktop (bool hidden)
 
virtual bool hasTransientPlacementHint () const
 
virtual QRectF transientPlacement () const
 
const WindowtransientFor () const
 
WindowtransientFor ()
 
void setTransientFor (Window *transientFor)
 
const QList< Window * > & transients () const
 
virtual void removeTransient (Window *transient)
 
void removeTransientFromList (Window *cl)
 
QList< Window * > allMainWindows () const
 
bool isSpecialWindow () const
 
void sendToOutput (Output *output)
 
const QKeySequence & shortcut () const
 
void setShortcut (const QString &cut)
 
void setMinimized (bool set)
 
bool isMinimized () const
 
bool isSuspended () const
 
void setSuspended (bool suspended)
 
QRectF fullscreenGeometryRestore () const
 
virtual bool isRequestedFullScreen () const
 
bool wantsAdaptiveSync () const
 
QRectF geometryRestore () const
 
virtual MaximizeMode requestedMaximizeMode () const
 
Q_INVOKABLE void setMaximize (bool vertically, bool horizontally)
 
QPalette palette ()
 
const Decoration::DecorationPalettedecorationPalette ()
 
bool isShade () const
 
ShadeMode shadeMode () const
 
void setShade (bool set)
 
void setShade (ShadeMode mode)
 
void toggleShade ()
 
void cancelShadeHoverTimer ()
 
const WindowRulesrules () const
 
void removeRule (Rules *r)
 
void setupWindowRules ()
 
void finishWindowRules ()
 
void evaluateWindowRules ()
 
bool wantsTabFocus () const
 
virtual bool dockWantsInput () const
 
void checkWorkspacePosition (QRectF oldGeometry=QRectF(), const VirtualDesktop *oldDesktop=nullptr)
 
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 ()
 
StrutRects strutRects () 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)
 
QRectF virtualKeyboardGeometry () const
 
virtual void setVirtualKeyboardGeometry (const QRectF &geo)
 
QString desktopFileName () const
 
bool hasApplicationMenu () const
 
bool applicationMenuActive () const
 
void setApplicationMenuActive (bool applicationMenuActive)
 
QString applicationMenuServiceName () const
 
QString applicationMenuObjectPath () const
 
void showApplicationMenu (int actionId)
 
QString colorScheme () const
 
void setColorScheme (const QString &colorScheme)
 
bool unresponsive () const
 
PlasmaWindowInterfacewindowManagementInterface () const
 
void setLastUsageSerial (quint32 serial)
 
quint32 lastUsageSerial () const
 
void refOffscreenRendering ()
 
void unrefOffscreenRendering ()
 

Static Public Member Functions

static void deleteClient (X11Window *c)
 Does 'delete c;'.
 
static bool belongToSameApplication (const X11Window *c1, const X11Window *c2, SameApplicationChecks checks=SameApplicationChecks())
 
static bool sameAppWindowRoleMatch (const X11Window *c1, const X11Window *c2, bool active_hack)
 
static void cleanupX11 ()
 
- Static Public Member Functions inherited from KWin::Window
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 Member Functions

bool belongsToSameApplication (const Window *other, SameApplicationChecks checks) const override
 
void doSetActive () override
 
void doSetKeepAbove () override
 
void doSetKeepBelow () override
 
void doSetShade (ShadeMode previousShadeMode) override
 
void doSetDesktop () override
 
void doMinimize () override
 
void doSetSkipPager () override
 
void doSetSkipTaskbar () override
 
void doSetSkipSwitcher () override
 
void doSetDemandsAttention () override
 
void doSetHidden () override
 
void doSetHiddenByShowDesktop () override
 
bool belongsToDesktop () const override
 
bool doStartInteractiveMoveResize () override
 
bool isWaitingForInteractiveMoveResizeSync () const override
 
void doInteractiveResizeSync (const QRectF &rect) override
 
QSizeF resizeIncrements () const override
 
bool acceptsFocus () const override
 
void moveResizeInternal (const QRectF &rect, MoveResizeMode mode) override
 
std::unique_ptr< WindowItemcreateItem (Scene *scene) override
 
- Protected Member Functions inherited from KWin::Window
 Window ()
 
void setResourceClass (const QString &name, const QString &className=QString())
 
void setIcon (const QIcon &icon)
 
void startAutoRaise ()
 
void autoRaise ()
 
bool isMostRecentlyRaised () const
 
void markAsDeleted ()
 
virtual void doSetQuickTileMode ()
 
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)
 
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 void doFinishInteractiveMoveResize ()
 
void finishInteractiveMoveResize (bool cancel)
 
void checkQuickTilingMaximizationZones (int xroot, int yroot)
 
void resetQuickTilingMaximizationZones ()
 
void handleInteractiveMoveResize (qreal x, qreal y, qreal x_root, qreal y_root)
 
void handleInteractiveMoveResize (const QPointF &local, const QPointF &global)
 
void dontInteractiveMoveResize ()
 
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)
 
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 ()
 

Friends

struct ResetupRulesProcedure
 
bool performTransiencyCheck ()
 

Additional Inherited Members

- Public Types inherited from KWin::Window
enum  SizeMode { SizeModeAny , SizeModeFixedW , SizeModeFixedH , SizeModeMax }
 
enum class  SameApplicationCheck { RelaxedForActive = 1 << 0 , AllowCrossProcesses = 1 << 1 }
 
- Protected Types inherited from KWin::Window
enum class  MoveResizeMode : uint { None , Move = 0x1 , Resize = 0x2 , MoveResize = Move | Resize }
 
- Protected Slots inherited from KWin::Window
void setReadyForPainting ()
 
- Protected Attributes inherited from KWin::Window
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 inherited from KWin::Window
static QHash< QString, std::weak_ptr< Decoration::DecorationPalette > > s_palettes
 
static std::shared_ptr< Decoration::DecorationPalettes_defaultPalette
 
- Properties inherited from KWin::Window
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
 

Detailed Description

Definition at line 71 of file x11window.h.

Constructor & Destructor Documentation

◆ X11Window()

KWin::X11Window::X11Window ( )
explicit

This ctor is "dumb" - it only initializes data. All the real initialization is done in manage().

Definition at line 277 of file x11window.cpp.

◆ ~X11Window()

KWin::X11Window::~X11Window ( )
override

Use destroyWindow() or releaseWindow()

"Dumb" destructor.

Definition at line 355 of file x11window.cpp.

Member Function Documentation

◆ acceptsFocus()

bool KWin::X11Window::acceptsFocus ( ) const
overrideprotectedvirtual

Whether the window accepts focus. The difference to wantsInput is that the implementation should not check rules and return what the window effectively supports.

Implements KWin::Window.

Definition at line 2598 of file x11window.cpp.

◆ activities()

QStringList KWin::X11Window::activities ( ) const
overridevirtual

Returns the list of activities the client 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 from KWin::Window.

Definition at line 2224 of file x11window.cpp.

◆ allowWindowActivation()

bool KWin::X11Window::allowWindowActivation ( xcb_timestamp_t time = -1U,
bool focus_in = false )

Definition at line 828 of file activation.cpp.

◆ applyWindowRules()

void KWin::X11Window::applyWindowRules ( )
overridevirtual

Reimplemented from KWin::Window.

Definition at line 4968 of file x11window.cpp.

◆ basicUnit()

QSizeF KWin::X11Window::basicUnit ( ) const

Definition at line 3879 of file x11window.cpp.

◆ belongsToDesktop()

bool KWin::X11Window::belongsToDesktop ( ) const
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 760 of file layers.cpp.

◆ belongsToSameApplication()

bool KWin::X11Window::belongsToSameApplication ( const Window * other,
SameApplicationChecks checks ) const
overrideprotectedvirtual

Implements KWin::Window.

Definition at line 2969 of file x11window.cpp.

◆ belongToSameApplication()

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

Definition at line 3039 of file x11window.cpp.

◆ blockCompositing()

void KWin::X11Window::blockCompositing ( )

Definition at line 2613 of file x11window.cpp.

◆ calculateGravitation()

const QPointF KWin::X11Window::calculateGravitation ( bool invert) const

Definition at line 3978 of file x11window.cpp.

◆ cancelFocusOutTimer()

void KWin::X11Window::cancelFocusOutTimer ( )

Definition at line 2785 of file x11window.cpp.

◆ captionNormal()

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

Implements KWin::Window.

Definition at line 207 of file x11window.h.

◆ captionSuffix()

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

Implements KWin::Window.

Definition at line 211 of file x11window.h.

◆ changeClientLeaderGroup()

void KWin::X11Window::changeClientLeaderGroup ( Group * gr)

Definition at line 3626 of file x11window.cpp.

◆ checkActiveModal()

void KWin::X11Window::checkActiveModal ( )

Definition at line 3641 of file x11window.cpp.

◆ checkActivities()

void KWin::X11Window::checkActivities ( )
overridevirtual

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

Reimplemented from KWin::Window.

Definition at line 2726 of file x11window.cpp.

◆ checkApplicationMenuObjectPath()

void KWin::X11Window::checkApplicationMenuObjectPath ( )

Definition at line 3009 of file x11window.cpp.

◆ checkApplicationMenuServiceName()

void KWin::X11Window::checkApplicationMenuServiceName ( )

Definition at line 2993 of file x11window.cpp.

◆ checkGroup()

void KWin::X11Window::checkGroup ( Group * gr = nullptr,
bool force = false )

Definition at line 3500 of file x11window.cpp.

◆ checkNoBorder()

void KWin::X11Window::checkNoBorder ( )
overridevirtual

Reimplemented from KWin::Window.

Definition at line 1538 of file x11window.cpp.

◆ checkTransient()

void KWin::X11Window::checkTransient ( xcb_window_t w)

Definition at line 3401 of file x11window.cpp.

◆ cleanupX11()

void KWin::X11Window::cleanupX11 ( )
static

Definition at line 1584 of file x11window.cpp.

◆ clientPosToFramePos()

QPointF KWin::X11Window::clientPosToFramePos ( const QPointF & point) const
overridevirtual

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

Reimplemented from KWin::Window.

Definition at line 2823 of file x11window.cpp.

◆ clientSizeToFrameSize()

QSizeF KWin::X11Window::clientSizeToFrameSize ( const QSizeF & size) const
overridevirtual

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

Definition at line 2855 of file x11window.cpp.

◆ closeWindow

void KWin::X11Window::closeWindow ( )
overrideslot

Closes the window by either sending a delete_window message or using XKill.

Definition at line 2038 of file x11window.cpp.

◆ constrainClientSize()

QSizeF KWin::X11Window::constrainClientSize ( const QSizeF & size,
SizeMode mode = SizeModeAny ) const
overridevirtual

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

Definition at line 3659 of file x11window.cpp.

◆ createItem()

std::unique_ptr< WindowItem > KWin::X11Window::createItem ( Scene * scene)
overrideprotectedvirtual

Implements KWin::Window.

Definition at line 367 of file x11window.cpp.

◆ deleteClient()

void KWin::X11Window::deleteClient ( X11Window * c)
static

Does 'delete c;'.

Definition at line 373 of file x11window.cpp.

◆ depth()

int KWin::X11Window::depth ( ) const
inline

Definition at line 535 of file x11window.h.

◆ desktopId()

int KWin::X11Window::desktopId ( ) const

Definition at line 5121 of file x11window.cpp.

◆ destroyWindow()

void KWin::X11Window::destroyWindow ( )
overridevirtual

Like releaseWindow(), but this one is called when the window has been already destroyed (E.g. The application closed it)

Implements KWin::Window.

Definition at line 470 of file x11window.cpp.

◆ detectShape()

void KWin::X11Window::detectShape ( )

Definition at line 1543 of file x11window.cpp.

◆ doInteractiveResizeSync()

void KWin::X11Window::doInteractiveResizeSync ( const QRectF & rect)
overrideprotectedvirtual

Called during handling a resize. Implementing subclasses can use this method to perform windowing system specific syncing.

Default implementation does nothing.

Reimplemented from KWin::Window.

Definition at line 4840 of file x11window.cpp.

◆ doMinimize()

void KWin::X11Window::doMinimize ( )
overrideprotectedvirtual

Called from minimize and unminimize once the minimized value got updated, but before the changed signal is emitted.

Default implementation does nothig.

Reimplemented from KWin::Window.

Definition at line 1696 of file x11window.cpp.

◆ doSetActive()

void KWin::X11Window::doSetActive ( )
overrideprotectedvirtual

Called from setActive once the active value got updated, but before the changed signal is emitted.

Default implementation does nothing.

Reimplemented from KWin::Window.

Definition at line 764 of file activation.cpp.

◆ doSetDemandsAttention()

void KWin::X11Window::doSetDemandsAttention ( )
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 2183 of file x11window.cpp.

◆ doSetDesktop()

void KWin::X11Window::doSetDesktop ( )
overrideprotectedvirtual

Called from setDeskop once the desktop value got updated, but before the changed signal is emitted.

Default implementation does nothing.

Reimplemented from KWin::Window.

Definition at line 2177 of file x11window.cpp.

◆ doSetHidden()

void KWin::X11Window::doSetHidden ( )
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 2188 of file x11window.cpp.

◆ doSetHiddenByShowDesktop()

void KWin::X11Window::doSetHiddenByShowDesktop ( )
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 2193 of file x11window.cpp.

◆ doSetKeepAbove()

void KWin::X11Window::doSetKeepAbove ( )
overrideprotectedvirtual

Called from setKeepAbove once the keepBelow value got updated, but before the changed signal is emitted.

Default implementation does nothing.

Reimplemented from KWin::Window.

Definition at line 2152 of file x11window.cpp.

◆ doSetKeepBelow()

void KWin::X11Window::doSetKeepBelow ( )
overrideprotectedvirtual

Called from setKeepBelow once the keepBelow value got updated, but before the changed signal is emitted.

Default implementation does nothing.

Reimplemented from KWin::Window.

Definition at line 2157 of file x11window.cpp.

◆ doSetOnActivities()

void KWin::X11Window::doSetOnActivities ( const QStringList & activityList)
overridevirtual

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

Definition at line 2198 of file x11window.cpp.

◆ doSetShade()

void KWin::X11Window::doSetShade ( ShadeMode previousShadeMode)
overrideprotectedvirtual

Called from setShade() once the shadeMode value got updated, but before the changed signal is emitted.

Default implementation does nothing.

Reimplemented from KWin::Window.

Definition at line 1741 of file x11window.cpp.

◆ doSetSkipPager()

void KWin::X11Window::doSetSkipPager ( )
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 2167 of file x11window.cpp.

◆ doSetSkipSwitcher()

void KWin::X11Window::doSetSkipSwitcher ( )
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 2172 of file x11window.cpp.

◆ doSetSkipTaskbar()

void KWin::X11Window::doSetSkipTaskbar ( )
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 2162 of file x11window.cpp.

◆ doStartInteractiveMoveResize()

bool KWin::X11Window::doStartInteractiveMoveResize ( )
overrideprotectedvirtual

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

Definition at line 4792 of file x11window.cpp.

◆ fetchApplicationMenuObjectPath()

Xcb::StringProperty KWin::X11Window::fetchApplicationMenuObjectPath ( ) const

Definition at line 2999 of file x11window.cpp.

◆ fetchApplicationMenuServiceName()

Xcb::StringProperty KWin::X11Window::fetchApplicationMenuServiceName ( ) const

Definition at line 2983 of file x11window.cpp.

◆ fetchPreferredColorScheme()

Xcb::StringProperty KWin::X11Window::fetchPreferredColorScheme ( ) const

Definition at line 2740 of file x11window.cpp.

◆ findModal()

Window * KWin::X11Window::findModal ( bool allow_itself = false)
overridevirtual

Implements KWin::Window.

Definition at line 3484 of file x11window.cpp.

◆ finishCompositing()

void KWin::X11Window::finishCompositing ( )
overridevirtual

Reimplemented from KWin::Window.

Definition at line 1645 of file x11window.cpp.

◆ frameId()

xcb_window_t KWin::X11Window::frameId ( ) const

Definition at line 2792 of file x11window.cpp.

◆ framePosToClientPos()

QPointF KWin::X11Window::framePosToClientPos ( const QPointF & point) const
overridevirtual

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

Reimplemented from KWin::Window.

Definition at line 2807 of file x11window.cpp.

◆ frameRectToBufferRect()

QRectF KWin::X11Window::frameRectToBufferRect ( const QRectF & rect) const

Definition at line 2871 of file x11window.cpp.

◆ frameSizeToClientSize()

QSizeF KWin::X11Window::frameSizeToClientSize ( const QSizeF & size) const
overridevirtual

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

Definition at line 2839 of file x11window.cpp.

◆ fullScreenMode()

int KWin::X11Window::fullScreenMode ( ) const
inline

Definition at line 160 of file x11window.h.

◆ gotPing()

void KWin::X11Window::gotPing ( xcb_timestamp_t timestamp)

Definition at line 2109 of file x11window.cpp.

◆ gravityAdjustment()

QPointF KWin::X11Window::gravityAdjustment ( xcb_gravity_t gravity) const

Definition at line 3920 of file x11window.cpp.

◆ group() [1/2]

const Group * KWin::X11Window::group ( ) const
inlineoverridevirtual

Default implementation returns null.

Mostly for X11 clients, holds the client group

Reimplemented from KWin::Window.

Definition at line 565 of file x11window.h.

◆ group() [2/2]

Group * KWin::X11Window::group ( )
inlineoverridevirtual

Default implementation returns null.

Mostly for X11 clients, holds the client group

Reimplemented from KWin::Window.

Definition at line 570 of file x11window.h.

◆ groupTransient()

bool KWin::X11Window::groupTransient ( ) const
inlineoverridevirtual

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

Definition at line 555 of file x11window.h.

◆ GTKShowWindowMenu()

void KWin::X11Window::GTKShowWindowMenu ( qreal x_root,
qreal y_root )

Definition at line 4213 of file x11window.cpp.

◆ handleSync()

void KWin::X11Window::handleSync ( )

Definition at line 3015 of file x11window.cpp.

◆ handleSyncTimeout()

void KWin::X11Window::handleSyncTimeout ( )

Definition at line 4874 of file x11window.cpp.

◆ hasAlpha()

bool KWin::X11Window::hasAlpha ( ) const
inline

Definition at line 540 of file x11window.h.

◆ hasNETSupport()

bool KWin::X11Window::hasNETSupport ( ) const
inline

Definition at line 585 of file x11window.h.

◆ hasScheduledRelease()

bool KWin::X11Window::hasScheduledRelease ( ) const

Definition at line 378 of file x11window.cpp.

◆ hasStrut()

bool KWin::X11Window::hasStrut ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 4959 of file x11window.cpp.

◆ hasTransient()

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

Reimplemented from KWin::Window.

Definition at line 3412 of file x11window.cpp.

◆ hasUserTimeSupport()

bool KWin::X11Window::hasUserTimeSupport ( ) const
inline

Definition at line 610 of file x11window.h.

◆ hiddenPreview()

bool KWin::X11Window::hiddenPreview ( ) const
inline

Window is mapped in order to get a window pixmap.

Definition at line 620 of file x11window.h.

◆ iconGeometry()

QRectF KWin::X11Window::iconGeometry ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 1712 of file x11window.cpp.

◆ implicitSize()

QSizeF KWin::X11Window::implicitSize ( ) const

Returns the natural size of the window, if the window is not shaded it's the same as size().

Definition at line 2892 of file x11window.cpp.

◆ inputId()

xcb_window_t KWin::X11Window::inputId ( ) const
inline

Definition at line 82 of file x11window.h.

◆ inputPos()

QPointF KWin::X11Window::inputPos ( ) const
inline

Definition at line 129 of file x11window.h.

◆ invalidateDecoration()

void KWin::X11Window::invalidateDecoration ( )
overridevirtual

Reimplemented from KWin::Window.

Definition at line 1330 of file x11window.cpp.

◆ isClient()

bool KWin::X11Window::isClient ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 2756 of file x11window.cpp.

◆ isClientSideDecorated()

bool KWin::X11Window::isClientSideDecorated ( ) const
inline

Definition at line 550 of file x11window.h.

◆ isCloseable()

bool KWin::X11Window::isCloseable ( ) const
overridevirtual

May be closed by the user (May have a close button)

Returns whether the window may be closed (have a close button)

Implements KWin::Window.

Definition at line 2030 of file x11window.cpp.

◆ isFullScreen()

bool KWin::X11Window::isFullScreen ( ) const
inlineoverridevirtual

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

Definition at line 580 of file x11window.h.

◆ isFullScreenable()

bool KWin::X11Window::isFullScreenable ( ) const
overridevirtual

Returns true if the Window can be shown in full screen mode; otherwise false.

Default implementation returns false.

Reimplemented from KWin::Window.

Definition at line 1485 of file x11window.cpp.

◆ isMaximizable()

bool KWin::X11Window::isMaximizable ( ) const
overridevirtual

Returns true if the Window can be maximized; otherwise false.

Default implementation returns false.

Reimplemented from KWin::Window.

Definition at line 4283 of file x11window.cpp.

◆ isMinimizable()

bool KWin::X11Window::isMinimizable ( ) const
overridevirtual

Returns whether the window is minimizable or not

Reimplemented from KWin::Window.

Definition at line 1656 of file x11window.cpp.

◆ isMovable()

bool KWin::X11Window::isMovable ( ) const
overridevirtual

Returns whether the window is moveable or has a fixed position.

Implements KWin::Window.

Definition at line 4219 of file x11window.cpp.

◆ isMovableAcrossScreens()

bool KWin::X11Window::isMovableAcrossScreens ( ) const
overridevirtual

Returns whether the window can be moved to another screen.

Implements KWin::Window.

Definition at line 4239 of file x11window.cpp.

◆ isOutline()

bool KWin::X11Window::isOutline ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 2766 of file x11window.cpp.

◆ isResizable()

bool KWin::X11Window::isResizable ( ) const
overridevirtual

Returns whether the window is resizable or has a fixed size.

Implements KWin::Window.

Definition at line 4256 of file x11window.cpp.

◆ isShadeable()

bool KWin::X11Window::isShadeable ( ) const
overridevirtual

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

Reimplemented from KWin::Window.

Definition at line 1736 of file x11window.cpp.

◆ isTransient()

bool KWin::X11Window::isTransient ( ) const
inlineoverridevirtual

Reimplemented from KWin::Window.

Definition at line 560 of file x11window.h.

◆ isUnmanaged()

bool KWin::X11Window::isUnmanaged ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 2761 of file x11window.cpp.

◆ isWaitingForInteractiveMoveResizeSync()

bool KWin::X11Window::isWaitingForInteractiveMoveResizeSync ( ) const
overrideprotectedvirtual

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

Reimplemented from KWin::Window.

Definition at line 4835 of file x11window.cpp.

◆ keyPressEvent() [1/2]

void Window::keyPressEvent ( uint key_code)

Definition at line 1078 of file window.cpp.

◆ keyPressEvent() [2/2]

void KWin::X11Window::keyPressEvent ( uint key_code,
xcb_timestamp_t time )

Definition at line 1321 of file events.cpp.

◆ killWindow()

void KWin::X11Window::killWindow ( )
overridevirtual

Kills the window via XKill

Implements KWin::Window.

Definition at line 2059 of file x11window.cpp.

◆ mainWindows()

QList< Window * > KWin::X11Window::mainWindows ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 3466 of file x11window.cpp.

◆ manage()

bool KWin::X11Window::manage ( xcb_window_t w,
bool isMapped )

Manages the clients. This means handling the very first maprequest: reparenting, initial geometry, initial state, placement, etc. Returns false if KWin is not going to manage this window.

Definition at line 592 of file x11window.cpp.

◆ maximize()

void KWin::X11Window::maximize ( MaximizeMode mode)
overridevirtual

Reimplemented from KWin::Window.

Definition at line 4419 of file x11window.cpp.

◆ maximizeMode()

MaximizeMode KWin::X11Window::maximizeMode ( ) const
inlineoverridevirtual

Returns the currently applied maximize mode.

Default implementation returns MaximizeRestore.

Reimplemented from KWin::Window.

Definition at line 575 of file x11window.h.

◆ maxSize()

QSizeF KWin::X11Window::maxSize ( ) const
overridevirtual

Returns the maximum client size, not the maximum frame size.

Reimplemented from KWin::Window.

Definition at line 3874 of file x11window.cpp.

◆ minSize()

QSizeF KWin::X11Window::minSize ( ) const
overridevirtual

Returns the minimum client size, not the minimum frame size.

Reimplemented from KWin::Window.

Definition at line 3869 of file x11window.cpp.

◆ moveResizeGrabWindow()

xcb_window_t KWin::X11Window::moveResizeGrabWindow ( ) const
inline

Definition at line 615 of file x11window.h.

◆ moveResizeInternal()

void KWin::X11Window::moveResizeInternal ( const QRectF & rect,
MoveResizeMode mode )
overrideprotectedvirtual

Reimplemented to inform the client about the new window position.

Implements KWin::Window.

Definition at line 4303 of file x11window.cpp.

◆ NETMoveResize()

void KWin::X11Window::NETMoveResize ( qreal x_root,
qreal y_root,
NET::Direction direction,
xcb_button_t button )

Definition at line 1273 of file events.cpp.

◆ NETMoveResizeWindow()

void KWin::X11Window::NETMoveResizeWindow ( int flags,
qreal x,
qreal y,
qreal width,
qreal height )

Definition at line 4193 of file x11window.cpp.

◆ noBorder()

bool KWin::X11Window::noBorder ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 1505 of file x11window.cpp.

◆ opaqueRegion()

QRegion KWin::X11Window::opaqueRegion ( ) const
inline

Definition at line 545 of file x11window.h.

◆ pendingSurfaceId()

quint32 KWin::X11Window::pendingSurfaceId ( ) const
inline

Definition at line 630 of file x11window.h.

◆ pid()

pid_t KWin::X11Window::pid ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 2897 of file x11window.cpp.

◆ preferredColorScheme()

QString KWin::X11Window::preferredColorScheme ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 2750 of file x11window.cpp.

◆ providesContextHelp()

bool KWin::X11Window::providesContextHelp ( ) const
overridevirtual

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.

See also
contextHelp()

Reimplemented from KWin::Window.

Definition at line 2270 of file x11window.cpp.

◆ readApplicationMenuObjectPath()

void KWin::X11Window::readApplicationMenuObjectPath ( Xcb::StringProperty & property)

Definition at line 3004 of file x11window.cpp.

◆ readApplicationMenuServiceName()

void KWin::X11Window::readApplicationMenuServiceName ( Xcb::StringProperty & property)

Definition at line 2988 of file x11window.cpp.

◆ readPreferredColorScheme()

QString KWin::X11Window::readPreferredColorScheme ( Xcb::StringProperty & property) const

Definition at line 2745 of file x11window.cpp.

◆ releaseWindow()

void KWin::X11Window::releaseWindow ( bool on_shutdown = false)

Releases the window. The client has done its job and the window is still existing.

Definition at line 386 of file x11window.cpp.

◆ resizeIncrements()

QSizeF KWin::X11Window::resizeIncrements ( ) const
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 2978 of file x11window.cpp.

◆ resizeWithChecks() [1/3]

QRectF KWin::X11Window::resizeWithChecks ( const QRectF & geometry,
const QSizeF & s,
xcb_gravity_t gravity )
inline

Definition at line 605 of file x11window.h.

◆ resizeWithChecks() [2/3]

QRectF KWin::X11Window::resizeWithChecks ( const QRectF & geometry,
const QSizeF & size )
inlineoverridevirtual

resizeWithChecks() resizes according to gravity, and checks workarea position

Implements KWin::Window.

Definition at line 600 of file x11window.h.

◆ resizeWithChecks() [3/3]

QRectF KWin::X11Window::resizeWithChecks ( const QRectF & geometry,
qreal w,
qreal h,
xcb_gravity_t gravity )

Definition at line 4128 of file x11window.cpp.

◆ restackWindow()

void KWin::X11Window::restackWindow ( xcb_window_t above,
int detail,
NET::RequestSource source,
xcb_timestamp_t timestamp,
bool send_event = false )

Definition at line 680 of file layers.cpp.

◆ sameAppWindowRoleMatch()

bool KWin::X11Window::sameAppWindowRoleMatch ( const X11Window * c1,
const X11Window * c2,
bool active_hack )
static

Definition at line 3091 of file x11window.cpp.

◆ sessionId()

QByteArray KWin::X11Window::sessionId ( ) const

Returns sessionId for this window, taken either from its window or from the leader window.

Definition at line 5130 of file x11window.cpp.

◆ sessionStackingOrder()

int KWin::X11Window::sessionStackingOrder ( ) const
inline

Definition at line 590 of file x11window.h.

◆ setBlockingCompositing()

void KWin::X11Window::setBlockingCompositing ( bool block)

Definition at line 2603 of file x11window.cpp.

◆ setFullScreen()

void KWin::X11Window::setFullScreen ( bool set)
overridevirtual

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

Definition at line 4697 of file x11window.cpp.

◆ setNoBorder()

void KWin::X11Window::setNoBorder ( bool set)
overridevirtual

Reimplemented from KWin::Window.

Definition at line 1524 of file x11window.cpp.

◆ setSessionActivityOverride()

void KWin::X11Window::setSessionActivityOverride ( bool needed)

Definition at line 2734 of file x11window.cpp.

◆ setupCompositing()

bool KWin::X11Window::setupCompositing ( )
overridevirtual

Reimplemented from KWin::Window.

Definition at line 1634 of file x11window.cpp.

◆ shapeChanged

void KWin::X11Window::shapeChanged ( )
signal

◆ shapeRegion()

QList< QRectF > KWin::X11Window::shapeRegion ( ) const

Definition at line 5063 of file x11window.cpp.

◆ showContextHelp()

void KWin::X11Window::showContextHelp ( )
overridevirtual

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

See also
providesContextHelp()

Reimplemented from KWin::Window.

Definition at line 2281 of file x11window.cpp.

◆ showOnScreenEdge()

void KWin::X11Window::showOnScreenEdge ( )
overridevirtual

Restores the Client after it had been hidden due to show on screen edge functionality. In addition the property gets deleted so that the Client knows that it is visible again.

Reimplemented from KWin::Window.

Definition at line 2963 of file x11window.cpp.

◆ strutRect()

StrutRect KWin::X11Window::strutRect ( StrutArea area) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 4915 of file x11window.cpp.

◆ supportsWindowRules()

bool KWin::X11Window::supportsWindowRules ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 4975 of file x11window.cpp.

◆ surfaceSerial()

quint64 KWin::X11Window::surfaceSerial ( ) const
inline

Definition at line 625 of file x11window.h.

◆ syncRequest()

const SyncRequest & KWin::X11Window::syncRequest ( ) const
inline

Definition at line 287 of file x11window.h.

◆ takeFocus()

bool KWin::X11Window::takeFocus ( )
overridevirtual

Performs the actual focusing of the window using XSetInputFocus and WM_TAKE_FOCUS

Implements KWin::Window.

Definition at line 2235 of file x11window.cpp.

◆ track()

bool KWin::X11Window::track ( xcb_window_t w)

Definition at line 516 of file x11window.cpp.

◆ unblockCompositing()

void KWin::X11Window::unblockCompositing ( )

Definition at line 2622 of file x11window.cpp.

◆ updateActivities()

void KWin::X11Window::updateActivities ( bool includeTransients)
overridevirtual

update after activities changed

Reimplemented from KWin::Window.

Definition at line 2211 of file x11window.cpp.

◆ updateCaption

void KWin::X11Window::updateCaption ( )
overrideslot

Definition at line 2376 of file x11window.cpp.

◆ updateFullscreenMonitors()

void KWin::X11Window::updateFullscreenMonitors ( NETFullscreenMonitors topology)

Definition at line 4749 of file x11window.cpp.

◆ updateMouseGrab()

void KWin::X11Window::updateMouseGrab ( )
overridevirtual

Reimplemented from KWin::Window.

Definition at line 905 of file events.cpp.

◆ updateShape()

void KWin::X11Window::updateShape ( )

Definition at line 1548 of file x11window.cpp.

◆ updateUserTime()

void KWin::X11Window::updateUserTime ( xcb_timestamp_t time = XCB_TIME_CURRENT_TIME)

Updates the user time (time of last action in the active window). This is called inside kwin for every action with the window that qualifies for user interaction (clicking on it, activate it externally, etc.).

Definition at line 646 of file activation.cpp.

◆ updateVisibility()

void KWin::X11Window::updateVisibility ( )

Updates visibility depending on being shaded, virtual desktop, etc.

Definition at line 1808 of file x11window.cpp.

◆ updateWindowRules()

void KWin::X11Window::updateWindowRules ( Rules::Types selection)
overridevirtual

Reimplemented from KWin::Window.

Definition at line 4980 of file x11window.cpp.

◆ userCanSetNoBorder()

bool KWin::X11Window::userCanSetNoBorder ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 1510 of file x11window.cpp.

◆ userNoBorder()

bool KWin::X11Window::userNoBorder ( ) const

Definition at line 1480 of file x11window.cpp.

◆ userTime()

xcb_timestamp_t KWin::X11Window::userTime ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 749 of file activation.cpp.

◆ visual()

xcb_visualid_t KWin::X11Window::visual ( ) const
inline

Definition at line 530 of file x11window.h.

◆ wantsInput()

bool KWin::X11Window::wantsInput ( ) const
overridevirtual

Implements KWin::Window.

Definition at line 2593 of file x11window.cpp.

◆ wantsSyncCounter()

bool KWin::X11Window::wantsSyncCounter ( ) const

Returns true if X11Client wants to throttle resizes; otherwise returns false.

Definition at line 2482 of file x11window.cpp.

◆ window()

xcb_window_t KWin::X11Window::window ( ) const

Definition at line 2797 of file x11window.cpp.

◆ windowEvent()

bool KWin::X11Window::windowEvent ( xcb_generic_event_t * e)

General handler for XEvents concerning the client window

Definition at line 316 of file events.cpp.

◆ windowRole()

QString KWin::X11Window::windowRole ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 2902 of file x11window.cpp.

◆ windowType()

NET::WindowType KWin::X11Window::windowType ( ) const
overridevirtual

Implements KWin::Window.

Definition at line 2771 of file x11window.cpp.

◆ wmClientLeader()

xcb_window_t KWin::X11Window::wmClientLeader ( ) const

Returns client leader window for this client. Returns the client window itself if no leader window is defined.

Definition at line 5157 of file x11window.cpp.

◆ wmCommand()

QString KWin::X11Window::wmCommand ( )

Returns command property for this window, taken either from its window or from the leader window.

Definition at line 5143 of file x11window.cpp.

◆ wrapperId()

xcb_window_t KWin::X11Window::wrapperId ( ) const

Definition at line 2802 of file x11window.cpp.

◆ wrapperPos()

QPointF KWin::X11Window::wrapperPos ( ) const

Returns the position of the wrapper window relative to the frame window. On X11, it is the same as QPoint(borderLeft(), borderTop()). On Wayland, it's QPoint(0, 0).

Definition at line 2883 of file x11window.cpp.

Friends And Related Symbol Documentation

◆ performTransiencyCheck

bool performTransiencyCheck ( )
friend

◆ ResetupRulesProcedure

friend struct ResetupRulesProcedure
friend

Definition at line 499 of file x11window.h.


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