KWin
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
KWin::XdgToplevelWindow Class Referencefinal

#include <xdgshellwindow.h>

Inheritance diagram for KWin::XdgToplevelWindow:
KWin::XdgSurfaceWindow KWin::WaylandWindow KWin::Window

Public Member Functions

 XdgToplevelWindow (XdgToplevelInterface *shellSurface)
 
 ~XdgToplevelWindow () override
 
XdgToplevelInterfaceshellSurface () const
 
MaximizeMode maximizeMode () const override
 
MaximizeMode requestedMaximizeMode () const override
 
QSizeF minSize () const override
 
QSizeF maxSize () const override
 
bool isFullScreen () const override
 
bool isRequestedFullScreen () const override
 
bool isMovableAcrossScreens () const override
 
bool isMovable () const override
 
bool isResizable () const override
 
bool isCloseable () const override
 
bool isFullScreenable () const override
 
bool isMaximizable () const override
 
bool isMinimizable () const override
 
bool isPlaceable () const override
 
bool isTransient () const override
 
bool userCanSetNoBorder () const override
 
bool noBorder () const override
 
void setNoBorder (bool set) override
 
void invalidateDecoration () override
 
QString preferredColorScheme () const override
 
bool supportsWindowRules () const override
 
void applyWindowRules () override
 
bool takeFocus () override
 
bool wantsInput () const override
 
bool dockWantsInput () const override
 
void setFullScreen (bool set) override
 
void closeWindow () override
 
void maximize (MaximizeMode mode) override
 
void installAppMenu (AppMenuInterface *appMenu)
 
void installServerDecoration (ServerSideDecorationInterface *decoration)
 
void installPalette (ServerSideDecorationPaletteInterface *palette)
 
void installXdgDecoration (XdgToplevelDecorationV1Interface *decoration)
 
- Public Member Functions inherited from KWin::XdgSurfaceWindow
 XdgSurfaceWindow (XdgSurfaceInterface *shellSurface)
 
 ~XdgSurfaceWindow () override
 
NET::WindowType windowType () const override
 
QRectF frameRectToBufferRect (const QRectF &rect) const override
 
void destroyWindow () override
 
void installPlasmaShellSurface (PlasmaShellSurfaceInterface *shellSurface)
 
- Public Member Functions inherited from KWin::WaylandWindow
 WaylandWindow (SurfaceInterface *surface)
 
QString captionNormal () const override
 
QString captionSuffix () const override
 
pid_t pid () const override
 
bool isClient () const override
 
bool isLockScreen () const override
 
bool isLocalhost () const override
 
WindowfindModal (bool allow_itself=false) override
 
QRectF resizeWithChecks (const QRectF &geometry, const QSizeF &size) override
 
void killWindow () override
 
QString windowRole () const override
 
void setCaption (const QString &caption)
 
- 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
 
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 ()
 
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 isInputMethod () const
 
virtual bool isOutline () const
 
virtual bool isInternal () const
 
virtual bool isPopupWindow () 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 ()
 
QString resourceName () const
 
QString resourceClass () const
 
QString wmClientMachine (bool use_localhost) const
 
ClientMachineclientMachine () 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
 
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)
 
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
 
bool isSuspended () const
 
void setSuspended (bool suspended)
 
QRectF fullscreenGeometryRestore () const
 
bool wantsAdaptiveSync () const
 
QRectF geometryRestore () 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 ()
 
virtual bool isShadeable () const
 
const WindowRulesrules () const
 
void removeRule (Rules *r)
 
void setupWindowRules ()
 
void finishWindowRules ()
 
void evaluateWindowRules ()
 
virtual void updateWindowRules (Rules::Types selection)
 
bool wantsTabFocus () 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 checkNoBorder ()
 
virtual bool providesContextHelp () const
 
virtual void showContextHelp ()
 
QRectF virtualKeyboardGeometry () const
 
virtual void setVirtualKeyboardGeometry (const QRectF &geo)
 
virtual void showOnScreenEdge ()
 
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
 
virtual bool groupTransient () const
 
virtual const Groupgroup () const
 
virtual Groupgroup ()
 
PlasmaWindowInterfacewindowManagementInterface () const
 
void setLastUsageSerial (quint32 serial)
 
quint32 lastUsageSerial () const
 
void refOffscreenRendering ()
 
void unrefOffscreenRendering ()
 

Protected Member Functions

XdgSurfaceConfiguresendRoleConfigure () const override
 
void handleRoleCommit () override
 
void handleRolePrecommit () override
 
void handleRoleDestroyed () override
 
void doMinimize () override
 
void doInteractiveResizeSync (const QRectF &rect) override
 
void doSetActive () override
 
void doSetFullScreen ()
 
void doSetMaximized ()
 
bool doStartInteractiveMoveResize () override
 
void doFinishInteractiveMoveResize () override
 
bool acceptsFocus () const override
 
void doSetQuickTileMode () override
 
void doSetSuspended () override
 
- Protected Member Functions inherited from KWin::XdgSurfaceWindow
void moveResizeInternal (const QRectF &rect, MoveResizeMode mode) override
 
XdgSurfaceConfigurelastAcknowledgedConfigure () const
 
void scheduleConfigure ()
 
void sendConfigure ()
 
- Protected Member Functions inherited from KWin::WaylandWindow
bool belongsToSameApplication (const Window *other, SameApplicationChecks checks) const override
 
bool belongsToDesktop () const override
 
void updateCaption () override
 
void updateClientOutputs ()
 
std::unique_ptr< WindowItemcreateItem (Scene *scene) override
 
void cleanGrouping ()
 
void updateGeometry (const QRectF &rect)
 
void markAsMapped ()
 
- 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 doSetKeepAbove ()
 
virtual void doSetKeepBelow ()
 
virtual void doSetShade (ShadeMode previousShadeMode)
 
virtual void doSetDesktop ()
 
virtual void doSetOnActivities (const QStringList &activityList)
 
virtual void doSetSkipTaskbar ()
 
virtual void doSetSkipPager ()
 
virtual void doSetSkipSwitcher ()
 
virtual void doSetDemandsAttention ()
 
virtual void doSetHidden ()
 
virtual void doSetHiddenByShowDesktop ()
 
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 ()
 
void finishInteractiveMoveResize (bool cancel)
 
virtual void leaveInteractiveMoveResize ()
 
void checkQuickTilingMaximizationZones (int xroot, int yroot)
 
void resetQuickTilingMaximizationZones ()
 
virtual bool isWaitingForInteractiveMoveResizeSync () const
 
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
 
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 ()
 

Additional Inherited Members

- Public Types inherited from KWin::Window
enum  SizeMode { SizeModeAny , SizeModeFixedW , SizeModeFixedH , SizeModeMax }
 
enum class  SameApplicationCheck { RelaxedForActive = 1 << 0 , AllowCrossProcesses = 1 << 1 }
 
- Public Slots inherited from KWin::Window
- 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 ()
 
- 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 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::XdgSurfaceWindow
QPointer< PlasmaShellSurfaceInterfacem_plasmaShellSurface
 
NET::WindowType m_windowType = NET::Normal
 
Gravity m_nextGravity = Gravity::None
 
- 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 108 of file xdgshellwindow.h.

Constructor & Destructor Documentation

◆ XdgToplevelWindow()

KWin::XdgToplevelWindow::XdgToplevelWindow ( XdgToplevelInterface * shellSurface)
explicit

Definition at line 404 of file xdgshellwindow.cpp.

◆ ~XdgToplevelWindow()

KWin::XdgToplevelWindow::~XdgToplevelWindow ( )
override

Definition at line 457 of file xdgshellwindow.cpp.

Member Function Documentation

◆ acceptsFocus()

bool KWin::XdgToplevelWindow::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 882 of file xdgshellwindow.cpp.

◆ applyWindowRules()

void KWin::XdgToplevelWindow::applyWindowRules ( )
overridevirtual

Reimplemented from KWin::Window.

Definition at line 648 of file xdgshellwindow.cpp.

◆ closeWindow()

void KWin::XdgToplevelWindow::closeWindow ( )
overridevirtual

Implements KWin::Window.

Definition at line 654 of file xdgshellwindow.cpp.

◆ dockWantsInput()

bool KWin::XdgToplevelWindow::dockWantsInput ( ) const
overridevirtual

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

Definition at line 872 of file xdgshellwindow.cpp.

◆ doFinishInteractiveMoveResize()

void KWin::XdgToplevelWindow::doFinishInteractiveMoveResize ( )
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 839 of file xdgshellwindow.cpp.

◆ doInteractiveResizeSync()

void KWin::XdgToplevelWindow::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 727 of file xdgshellwindow.cpp.

◆ doMinimize()

void KWin::XdgToplevelWindow::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 717 of file xdgshellwindow.cpp.

◆ doSetActive()

void KWin::XdgToplevelWindow::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::WaylandWindow.

Definition at line 732 of file xdgshellwindow.cpp.

◆ doSetFullScreen()

void KWin::XdgToplevelWindow::doSetFullScreen ( )
protected

Definition at line 745 of file xdgshellwindow.cpp.

◆ doSetMaximized()

void KWin::XdgToplevelWindow::doSetMaximized ( )
protected

Definition at line 756 of file xdgshellwindow.cpp.

◆ doSetQuickTileMode()

void KWin::XdgToplevelWindow::doSetQuickTileMode ( )
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 798 of file xdgshellwindow.cpp.

◆ doSetSuspended()

void KWin::XdgToplevelWindow::doSetSuspended ( )
overrideprotectedvirtual

Reimplemented from KWin::Window.

Definition at line 847 of file xdgshellwindow.cpp.

◆ doStartInteractiveMoveResize()

bool KWin::XdgToplevelWindow::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 829 of file xdgshellwindow.cpp.

◆ handleRoleCommit()

void KWin::XdgToplevelWindow::handleRoleCommit ( )
overrideprotectedvirtual

Reimplemented from KWin::XdgSurfaceWindow.

Definition at line 709 of file xdgshellwindow.cpp.

◆ handleRoleDestroyed()

void KWin::XdgToplevelWindow::handleRoleDestroyed ( )
overrideprotectedvirtual

Reimplemented from KWin::XdgSurfaceWindow.

Definition at line 464 of file xdgshellwindow.cpp.

◆ handleRolePrecommit()

void KWin::XdgToplevelWindow::handleRolePrecommit ( )
overrideprotectedvirtual

Reimplemented from KWin::XdgSurfaceWindow.

Definition at line 694 of file xdgshellwindow.cpp.

◆ installAppMenu()

void KWin::XdgToplevelWindow::installAppMenu ( AppMenuInterface * appMenu)

Definition at line 1285 of file xdgshellwindow.cpp.

◆ installPalette()

void KWin::XdgToplevelWindow::installPalette ( ServerSideDecorationPaletteInterface * palette)

Definition at line 1421 of file xdgshellwindow.cpp.

◆ installServerDecoration()

void KWin::XdgToplevelWindow::installServerDecoration ( ServerSideDecorationInterface * decoration)

Definition at line 1405 of file xdgshellwindow.cpp.

◆ installXdgDecoration()

void KWin::XdgToplevelWindow::installXdgDecoration ( XdgToplevelDecorationV1Interface * decoration)

Definition at line 1392 of file xdgshellwindow.cpp.

◆ invalidateDecoration()

void KWin::XdgToplevelWindow::invalidateDecoration ( )
overridevirtual

Reimplemented from KWin::Window.

Definition at line 637 of file xdgshellwindow.cpp.

◆ isCloseable()

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

Implements KWin::Window.

Definition at line 568 of file xdgshellwindow.cpp.

◆ isFullScreen()

bool KWin::XdgToplevelWindow::isFullScreen ( ) const
overridevirtual

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 517 of file xdgshellwindow.cpp.

◆ isFullScreenable()

bool KWin::XdgToplevelWindow::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 573 of file xdgshellwindow.cpp.

◆ isMaximizable()

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

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

Default implementation returns false.

Reimplemented from KWin::Window.

Definition at line 581 of file xdgshellwindow.cpp.

◆ isMinimizable()

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

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

Default implementation returns false.

Reimplemented from KWin::Window.

Definition at line 592 of file xdgshellwindow.cpp.

◆ isMovable()

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

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

Implements KWin::Window.

Definition at line 527 of file xdgshellwindow.cpp.

◆ isMovableAcrossScreens()

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

Returns whether the window can be moved to another screen.

Implements KWin::Window.

Definition at line 541 of file xdgshellwindow.cpp.

◆ isPlaceable()

bool KWin::XdgToplevelWindow::isPlaceable ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 603 of file xdgshellwindow.cpp.

◆ isRequestedFullScreen()

bool KWin::XdgToplevelWindow::isRequestedFullScreen ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 522 of file xdgshellwindow.cpp.

◆ isResizable()

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

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

Implements KWin::Window.

Definition at line 552 of file xdgshellwindow.cpp.

◆ isTransient()

bool KWin::XdgToplevelWindow::isTransient ( ) const
overridevirtual

Reimplemented from KWin::Window.

Definition at line 611 of file xdgshellwindow.cpp.

◆ maximize()

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

Reimplemented from KWin::Window.

Definition at line 1466 of file xdgshellwindow.cpp.

◆ maximizeMode()

MaximizeMode KWin::XdgToplevelWindow::maximizeMode ( ) const
overridevirtual

Returns the currently applied maximize mode.

Default implementation returns MaximizeRestore.

Reimplemented from KWin::Window.

Definition at line 494 of file xdgshellwindow.cpp.

◆ maxSize()

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

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

Reimplemented from KWin::Window.

Definition at line 510 of file xdgshellwindow.cpp.

◆ minSize()

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

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

Reimplemented from KWin::Window.

Definition at line 504 of file xdgshellwindow.cpp.

◆ noBorder()

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

Reimplemented from KWin::Window.

Definition at line 621 of file xdgshellwindow.cpp.

◆ preferredColorScheme()

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

Reimplemented from KWin::Window.

Definition at line 1277 of file xdgshellwindow.cpp.

◆ requestedMaximizeMode()

MaximizeMode KWin::XdgToplevelWindow::requestedMaximizeMode ( ) const
overridevirtual

Returns the last requested maximize mode.

On X11, this method always matches maximizeMode(). On Wayland, it is asynchronous.

Default implementation matches maximizeMode().

Reimplemented from KWin::Window.

Definition at line 499 of file xdgshellwindow.cpp.

◆ sendRoleConfigure()

XdgSurfaceConfigure * KWin::XdgToplevelWindow::sendRoleConfigure ( ) const
overrideprotectedvirtual

Implements KWin::XdgSurfaceWindow.

Definition at line 662 of file xdgshellwindow.cpp.

◆ setFullScreen()

void KWin::XdgToplevelWindow::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 1432 of file xdgshellwindow.cpp.

◆ setNoBorder()

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

Reimplemented from KWin::Window.

Definition at line 626 of file xdgshellwindow.cpp.

◆ shellSurface()

XdgToplevelInterface * KWin::XdgToplevelWindow::shellSurface ( ) const

Definition at line 489 of file xdgshellwindow.cpp.

◆ supportsWindowRules()

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

Reimplemented from KWin::Window.

Definition at line 643 of file xdgshellwindow.cpp.

◆ takeFocus()

bool KWin::XdgToplevelWindow::takeFocus ( )
overridevirtual

Implements KWin::Window.

Definition at line 858 of file xdgshellwindow.cpp.

◆ userCanSetNoBorder()

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

Reimplemented from KWin::Window.

Definition at line 616 of file xdgshellwindow.cpp.

◆ wantsInput()

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

Implements KWin::Window.

Definition at line 867 of file xdgshellwindow.cpp.


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