KWin
|
#include <x11window.h>
Classes | |
struct | SyncRequest |
Public Slots | |
void | closeWindow () override |
void | updateCaption () override |
![]() | |
virtual void | closeWindow ()=0 |
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) |
Window * | findModal (bool allow_itself=false) override |
const Group * | group () const override |
Group * | group () 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 SyncRequest & | syncRequest () 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) |
![]() | |
~Window () override | |
void | ref () |
void | unref () |
QRectF | moveResizeGeometry () const |
Output * | moveResizeOutput () const |
void | setMoveResizeOutput (Output *output) |
QRectF | bufferGeometry () const |
QRectF | frameGeometry () const |
QRectF | clientGeometry () const |
QMargins | frameMargins () const |
QSizeF | size () const |
QPointF | pos () const |
QRectF | rect () const |
qreal | x () const |
qreal | y () const |
qreal | width () const |
qreal | height () const |
bool | isOnOutput (Output *output) const |
bool | isOnActiveOutput () const |
Output * | output () const |
void | setOutput (Output *output) |
QSizeF | clientSize () const |
QRectF | visibleGeometry () const |
QPointF | mapToFrame (const QPointF &point) const |
QPointF | mapToLocal (const QPointF &point) const |
QPointF | mapFromLocal (const QPointF &point) const |
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 |
ClientMachine * | clientMachine () const |
virtual bool | isLocalhost () const |
bool | readyForPainting () const |
void | setOpacity (qreal opacity) |
qreal | opacity () const |
EffectWindow * | effectWindow () |
const EffectWindow * | effectWindow () const |
SurfaceItem * | surfaceItem () const |
WindowItem * | windowItem () const |
void | elevate (bool elevate) |
Shadow * | shadow () const |
void | updateShadow () |
bool | wantsShadowToBeRendered () const |
bool | skipsCloseAnimation () const |
void | setSkipCloseAnimation (bool set) |
SurfaceInterface * | surface () const |
void | setSurface (SurfaceInterface *surface) |
QMatrix4x4 | inputTransformation () const |
virtual bool | hitTest (const QPointF &point) const |
virtual bool | hasPopupGrab () const |
virtual void | popupDone () |
QUuid | internalId () const |
int | stackingOrder () const |
void | setStackingOrder (int order) |
bool | skipSwitcher () const |
void | setSkipSwitcher (bool set) |
bool | skipTaskbar () const |
void | setSkipTaskbar (bool set) |
void | setOriginalSkipTaskbar (bool set) |
bool | originalSkipTaskbar () const |
bool | skipPager () const |
void | setSkipPager (bool set) |
const QIcon & | icon () const |
bool | isActive () const |
void | setActive (bool) |
bool | keepAbove () const |
void | setKeepAbove (bool) |
bool | keepBelow () const |
void | setKeepBelow (bool) |
void | demandAttention (bool set=true) |
bool | isDemandingAttention () const |
void | cancelAutoRaise () |
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 Window * | transientFor () const |
Window * | transientFor () |
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::DecorationPalette * | decorationPalette () |
bool | isShade () const |
ShadeMode | shadeMode () const |
void | setShade (bool set) |
void | setShade (ShadeMode mode) |
void | toggleShade () |
void | cancelShadeHoverTimer () |
const WindowRules * | rules () 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) |
Tile * | tile () const |
void | setTile (Tile *tile) |
void | setQuickTileMode (QuickTileMode mode, bool keyboard=false) |
QuickTileMode | quickTileMode () const |
Layer | layer () const |
void | updateLayer () |
bool | isInteractiveMove () const |
bool | isInteractiveResize () const |
CursorShape | cursor () const |
uint32_t | interactiveMoveResizeCount () const |
void | updateInteractiveMoveResize (const QPointF ¤tGlobalCursor) |
void | endInteractiveMoveResize () |
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::DecoratedClientImpl * | decoratedClient () const |
void | setDecoratedClient (Decoration::DecoratedClientImpl *client) |
bool | decorationHasAlpha () const |
void | triggerDecorationRepaint () |
void | layoutDecorationRects (QRectF &left, QRectF &top, QRectF &right, QRectF &bottom) const |
void | processDecorationMove (const QPointF &localPos, const QPointF &globalPos) |
bool | processDecorationButtonPress (QMouseEvent *event, bool ignoreMenu=false) |
void | processDecorationButtonRelease (QMouseEvent *event) |
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 |
PlasmaWindowInterface * | windowManagementInterface () 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 () |
![]() | |
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()) |
Friends | |
struct | ResetupRulesProcedure |
bool | performTransiencyCheck () |
Definition at line 71 of file x11window.h.
|
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.
|
override |
Use destroyWindow() or releaseWindow()
"Dumb" destructor.
Definition at line 355 of file x11window.cpp.
|
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.
|
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.
bool KWin::X11Window::allowWindowActivation | ( | xcb_timestamp_t | time = -1U, |
bool | focus_in = false ) |
Definition at line 828 of file activation.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 4968 of file x11window.cpp.
QSizeF KWin::X11Window::basicUnit | ( | ) | const |
Definition at line 3879 of file x11window.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 760 of file layers.cpp.
|
overrideprotectedvirtual |
Implements KWin::Window.
Definition at line 2969 of file x11window.cpp.
|
static |
Definition at line 3039 of file x11window.cpp.
void KWin::X11Window::blockCompositing | ( | ) |
Definition at line 2613 of file x11window.cpp.
const QPointF KWin::X11Window::calculateGravitation | ( | bool | invert | ) | const |
Definition at line 3978 of file x11window.cpp.
void KWin::X11Window::cancelFocusOutTimer | ( | ) |
Definition at line 2785 of file x11window.cpp.
|
inlineoverridevirtual |
Implements KWin::Window.
Definition at line 207 of file x11window.h.
|
inlineoverridevirtual |
Implements KWin::Window.
Definition at line 211 of file x11window.h.
void KWin::X11Window::changeClientLeaderGroup | ( | Group * | gr | ) |
Definition at line 3626 of file x11window.cpp.
void KWin::X11Window::checkActiveModal | ( | ) |
Definition at line 3641 of file x11window.cpp.
|
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.
void KWin::X11Window::checkApplicationMenuObjectPath | ( | ) |
Definition at line 3009 of file x11window.cpp.
void KWin::X11Window::checkApplicationMenuServiceName | ( | ) |
Definition at line 2993 of file x11window.cpp.
void KWin::X11Window::checkGroup | ( | Group * | gr = nullptr, |
bool | force = false ) |
Definition at line 3500 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1538 of file x11window.cpp.
void KWin::X11Window::checkTransient | ( | xcb_window_t | w | ) |
Definition at line 3401 of file x11window.cpp.
|
static |
Definition at line 1584 of file x11window.cpp.
|
overridevirtual |
Calculates the matching frame position for the given client position point
.
Reimplemented from KWin::Window.
Definition at line 2823 of file x11window.cpp.
|
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.
|
overrideslot |
Closes the window by either sending a delete_window message or using XKill.
Definition at line 2038 of file x11window.cpp.
|
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.
|
overrideprotectedvirtual |
Implements KWin::Window.
Definition at line 367 of file x11window.cpp.
|
static |
Does 'delete c;'.
Definition at line 373 of file x11window.cpp.
|
inline |
Definition at line 535 of file x11window.h.
int KWin::X11Window::desktopId | ( | ) | const |
Definition at line 5121 of file x11window.cpp.
|
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.
void KWin::X11Window::detectShape | ( | ) |
Definition at line 1543 of file x11window.cpp.
|
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.
|
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.
|
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.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 2183 of file x11window.cpp.
|
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.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 2188 of file x11window.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 2193 of file x11window.cpp.
|
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.
|
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.
|
overridevirtual |
Called from setOnActivities just after the activity list member has been updated, but before updateActivities is called.
activityList | the new list of activities set on that window |
Default implementation does nothing
Reimplemented from KWin::Window.
Definition at line 2198 of file x11window.cpp.
|
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.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 2167 of file x11window.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 2172 of file x11window.cpp.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 2162 of file x11window.cpp.
|
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.
Xcb::StringProperty KWin::X11Window::fetchApplicationMenuObjectPath | ( | ) | const |
Definition at line 2999 of file x11window.cpp.
Xcb::StringProperty KWin::X11Window::fetchApplicationMenuServiceName | ( | ) | const |
Definition at line 2983 of file x11window.cpp.
Xcb::StringProperty KWin::X11Window::fetchPreferredColorScheme | ( | ) | const |
Definition at line 2740 of file x11window.cpp.
|
overridevirtual |
Implements KWin::Window.
Definition at line 3484 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1645 of file x11window.cpp.
xcb_window_t KWin::X11Window::frameId | ( | ) | const |
Definition at line 2792 of file x11window.cpp.
|
overridevirtual |
Calculates the matching client position for the given frame position point
.
Reimplemented from KWin::Window.
Definition at line 2807 of file x11window.cpp.
QRectF KWin::X11Window::frameRectToBufferRect | ( | const QRectF & | rect | ) | const |
Definition at line 2871 of file x11window.cpp.
|
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.
|
inline |
Definition at line 160 of file x11window.h.
void KWin::X11Window::gotPing | ( | xcb_timestamp_t | timestamp | ) |
Definition at line 2109 of file x11window.cpp.
QPointF KWin::X11Window::gravityAdjustment | ( | xcb_gravity_t | gravity | ) | const |
Definition at line 3920 of file x11window.cpp.
|
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.
|
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.
|
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.
void KWin::X11Window::GTKShowWindowMenu | ( | qreal | x_root, |
qreal | y_root ) |
Definition at line 4213 of file x11window.cpp.
void KWin::X11Window::handleSync | ( | ) |
Definition at line 3015 of file x11window.cpp.
void KWin::X11Window::handleSyncTimeout | ( | ) |
Definition at line 4874 of file x11window.cpp.
|
inline |
Definition at line 540 of file x11window.h.
|
inline |
Definition at line 585 of file x11window.h.
bool KWin::X11Window::hasScheduledRelease | ( | ) | const |
Definition at line 378 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 4959 of file x11window.cpp.
|
overridevirtual |
true
if transient is the transient_for window for this window, or recursively the transient_for window Reimplemented from KWin::Window.
Definition at line 3412 of file x11window.cpp.
|
inline |
Definition at line 610 of file x11window.h.
|
inline |
Window is mapped in order to get a window pixmap.
Definition at line 620 of file x11window.h.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1712 of file x11window.cpp.
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.
|
inline |
Definition at line 82 of file x11window.h.
|
inline |
Definition at line 129 of file x11window.h.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1330 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 2756 of file x11window.cpp.
|
inline |
Definition at line 550 of file x11window.h.
|
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.
|
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.
|
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.
|
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.
|
overridevirtual |
Returns whether the window is minimizable or not
Reimplemented from KWin::Window.
Definition at line 1656 of file x11window.cpp.
|
overridevirtual |
Returns whether the window is moveable or has a fixed position.
Implements KWin::Window.
Definition at line 4219 of file x11window.cpp.
|
overridevirtual |
Returns whether the window can be moved to another screen.
Implements KWin::Window.
Definition at line 4239 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 2766 of file x11window.cpp.
|
overridevirtual |
Returns whether the window is resizable or has a fixed size.
Implements KWin::Window.
Definition at line 4256 of file x11window.cpp.
|
overridevirtual |
Whether the Window can be shaded. Default implementation returns false
.
Reimplemented from KWin::Window.
Definition at line 1736 of file x11window.cpp.
|
inlineoverridevirtual |
Reimplemented from KWin::Window.
Definition at line 560 of file x11window.h.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 2761 of file x11window.cpp.
|
overrideprotectedvirtual |
Whether a sync request is still pending. Default implementation returns false
.
Reimplemented from KWin::Window.
Definition at line 4835 of file x11window.cpp.
void Window::keyPressEvent | ( | uint | key_code | ) |
Definition at line 1078 of file window.cpp.
void KWin::X11Window::keyPressEvent | ( | uint | key_code, |
xcb_timestamp_t | time ) |
Definition at line 1321 of file events.cpp.
|
overridevirtual |
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 3466 of file x11window.cpp.
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.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 4419 of file x11window.cpp.
|
inlineoverridevirtual |
Returns the currently applied maximize mode.
Default implementation returns MaximizeRestore.
Reimplemented from KWin::Window.
Definition at line 575 of file x11window.h.
|
overridevirtual |
Returns the maximum client size, not the maximum frame size.
Reimplemented from KWin::Window.
Definition at line 3874 of file x11window.cpp.
|
overridevirtual |
Returns the minimum client size, not the minimum frame size.
Reimplemented from KWin::Window.
Definition at line 3869 of file x11window.cpp.
|
inline |
Definition at line 615 of file x11window.h.
|
overrideprotectedvirtual |
Reimplemented to inform the client about the new window position.
Implements KWin::Window.
Definition at line 4303 of file x11window.cpp.
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.
void KWin::X11Window::NETMoveResizeWindow | ( | int | flags, |
qreal | x, | ||
qreal | y, | ||
qreal | width, | ||
qreal | height ) |
Definition at line 4193 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1505 of file x11window.cpp.
|
inline |
Definition at line 545 of file x11window.h.
|
inline |
Definition at line 630 of file x11window.h.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 2897 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 2750 of file x11window.cpp.
|
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.
Reimplemented from KWin::Window.
Definition at line 2270 of file x11window.cpp.
void KWin::X11Window::readApplicationMenuObjectPath | ( | Xcb::StringProperty & | property | ) |
Definition at line 3004 of file x11window.cpp.
void KWin::X11Window::readApplicationMenuServiceName | ( | Xcb::StringProperty & | property | ) |
Definition at line 2988 of file x11window.cpp.
QString KWin::X11Window::readPreferredColorScheme | ( | Xcb::StringProperty & | property | ) | const |
Definition at line 2745 of file x11window.cpp.
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.
|
overrideprotectedvirtual |
Reimplemented from KWin::Window.
Definition at line 2978 of file x11window.cpp.
|
inline |
Definition at line 605 of file x11window.h.
|
inlineoverridevirtual |
resizeWithChecks() resizes according to gravity, and checks workarea position
Implements KWin::Window.
Definition at line 600 of file x11window.h.
QRectF KWin::X11Window::resizeWithChecks | ( | const QRectF & | geometry, |
qreal | w, | ||
qreal | h, | ||
xcb_gravity_t | gravity ) |
Definition at line 4128 of file x11window.cpp.
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.
|
static |
Definition at line 3091 of file x11window.cpp.
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.
|
inline |
Definition at line 590 of file x11window.h.
void KWin::X11Window::setBlockingCompositing | ( | bool | block | ) |
Definition at line 2603 of file x11window.cpp.
|
overridevirtual |
Asks the Window to enter or leave full screen mode.
Default implementation does nothing.
set | true if the Window has to be shown in full screen mode, otherwise false |
Reimplemented from KWin::Window.
Definition at line 4697 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1524 of file x11window.cpp.
void KWin::X11Window::setSessionActivityOverride | ( | bool | needed | ) |
Definition at line 2734 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1634 of file x11window.cpp.
|
signal |
QList< QRectF > KWin::X11Window::shapeRegion | ( | ) | const |
Definition at line 5063 of file x11window.cpp.
|
overridevirtual |
Invokes context help on the window. Only works if the window actually provides context help.
Reimplemented from KWin::Window.
Definition at line 2281 of file x11window.cpp.
|
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.
Reimplemented from KWin::Window.
Definition at line 4915 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 4975 of file x11window.cpp.
|
inline |
Definition at line 625 of file x11window.h.
|
inline |
Definition at line 287 of file x11window.h.
|
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.
bool KWin::X11Window::track | ( | xcb_window_t | w | ) |
Definition at line 516 of file x11window.cpp.
void KWin::X11Window::unblockCompositing | ( | ) |
Definition at line 2622 of file x11window.cpp.
|
overridevirtual |
update after activities changed
Reimplemented from KWin::Window.
Definition at line 2211 of file x11window.cpp.
|
overrideslot |
Definition at line 2376 of file x11window.cpp.
void KWin::X11Window::updateFullscreenMonitors | ( | NETFullscreenMonitors | topology | ) |
Definition at line 4749 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 905 of file events.cpp.
void KWin::X11Window::updateShape | ( | ) |
Definition at line 1548 of file x11window.cpp.
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.
void KWin::X11Window::updateVisibility | ( | ) |
Updates visibility depending on being shaded, virtual desktop, etc.
Definition at line 1808 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 4980 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 1510 of file x11window.cpp.
bool KWin::X11Window::userNoBorder | ( | ) | const |
Definition at line 1480 of file x11window.cpp.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 749 of file activation.cpp.
|
inline |
Definition at line 530 of file x11window.h.
|
overridevirtual |
Implements KWin::Window.
Definition at line 2593 of file x11window.cpp.
bool KWin::X11Window::wantsSyncCounter | ( | ) | const |
Returns true
if X11Client wants to throttle resizes; otherwise returns false
.
Definition at line 2482 of file x11window.cpp.
xcb_window_t KWin::X11Window::window | ( | ) | const |
Definition at line 2797 of file x11window.cpp.
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.
|
overridevirtual |
Reimplemented from KWin::Window.
Definition at line 2902 of file x11window.cpp.
|
overridevirtual |
Implements KWin::Window.
Definition at line 2771 of file x11window.cpp.
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.
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.
xcb_window_t KWin::X11Window::wrapperId | ( | ) | const |
Definition at line 2802 of file x11window.cpp.
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.
|
friend |
|
friend |
Definition at line 499 of file x11window.h.