12#include <kwindowsystem_export.h>
43 QPoint toPoint()
const
110 NETRect(
const QRect &rect)
334class KWINDOWSYSTEM_EXPORT
NET
614 MoveResizeCancel = 11,
645 ActionMove = 1u << 0,
646 ActionResize = 1u << 1,
647 ActionMinimize = 1u << 2,
648 ActionShade = 1u << 3,
649 ActionStick = 1u << 4,
650 ActionMaxVert = 1u << 5,
651 ActionMaxHoriz = 1u << 6,
652 ActionMax = ActionMaxVert | ActionMaxHoriz,
653 ActionFullScreen = 1u << 7,
654 ActionChangeDesktop = 1u << 8,
655 ActionClose = 1u << 9,
711 ClientList = 1u << 1,
712 ClientListStacking = 1u << 2,
713 NumberOfDesktops = 1u << 3,
714 DesktopGeometry = 1u << 4,
715 DesktopViewport = 1u << 5,
716 CurrentDesktop = 1u << 6,
717 DesktopNames = 1u << 7,
718 ActiveWindow = 1u << 8,
720 SupportingWMCheck = 1u << 10,
721 VirtualRoots = 1u << 11,
723 CloseWindow = 1u << 13,
724 WMMoveResize = 1u << 14,
728 WMVisibleName = 1u << 16,
729 WMDesktop = 1u << 17,
730 WMWindowType = 1u << 18,
733 WMIconGeometry = 1u << 21,
736 WMHandledIcons = 1u << 24,
738 XAWMState = 1u << 27,
739 WMFrameExtents = 1u << 28,
742 WMIconName = 1u << 29,
743 WMVisibleIconName = 1u << 30,
744 WMGeometry = 1u << 31,
745 WMAllProperties = ~0u,
789 WM2UserTime = 1u << 0,
790 WM2StartupId = 1u << 1,
791 WM2TransientFor = 1u << 2,
792 WM2GroupLeader = 1u << 3,
793 WM2AllowedActions = 1u << 4,
794 WM2RestackWindow = 1u << 5,
795 WM2MoveResizeWindow = 1u << 6,
796 WM2ExtendedStrut = 1u << 7,
797 WM2KDETemporaryRules = 1u << 8,
798 WM2WindowClass = 1u << 9,
799 WM2WindowRole = 1u << 10,
800 WM2ClientMachine = 1u << 11,
801 WM2ShowingDesktop = 1u << 12,
802 WM2Opacity = 1u << 13,
803 WM2DesktopLayout = 1u << 14,
804 WM2FullPlacement = 1u << 15,
805 WM2FullscreenMonitors = 1u << 16,
806 WM2FrameOverlap = 1u << 17,
807 WM2Activities = 1u << 18,
808 WM2BlockCompositing = 1u << 19,
809 WM2KDEShadow = 1u << 20,
810 WM2Urgency = 1u << 21,
812 WM2Protocols = 1u << 23,
813 WM2InitialMappingState = 1u << 24,
814 WM2IconPixmap = 1u << 25,
815 WM2OpaqueRegion = 1u << 25,
816 WM2DesktopFileName = 1u << 26,
817 WM2GTKFrameExtents = 1u << 27,
818 WM2AppMenuServiceName = 1u << 28,
819 WM2AppMenuObjectPath = 1u << 29,
820 WM2GTKApplicationId = 1u << 30,
821 WM2GTKShowWindowMenu = 1u << 31,
822 WM2AllProperties = ~0u,
860 OrientationHorizontal = 0,
861 OrientationVertical = 1,
868 DesktopLayoutCornerTopLeft = 0,
869 DesktopLayoutCornerTopRight = 1,
870 DesktopLayoutCornerBottomLeft = 2,
871 DesktopLayoutCornerBottomRight = 3,
903 static int timestampDiff(
unsigned long time1,
unsigned long time2);
Protocol
Protocols supported by the client.
@ DeleteWindowProtocol
WM_DELETE_WINDOW.
@ ContextHelpProtocol
_NET_WM_CONTEXT_HELP, NON STANDARD!
@ TakeFocusProtocol
WM_TAKE_FOCUS.
@ PingProtocol
_NET_WM_PING from EWMH
@ SyncRequestProtocol
_NET_WM_SYNC_REQUEST from EWMH
@ MaxHoriz
indicates that the window is horizontally maximized.
@ Sticky
indicates that the Window Manager SHOULD keep the window's position fixed on the screen,...
@ Shaded
indicates that the window is shaded (rolled-up).
@ MaxVert
indicates that the window is vertically maximized.
@ DemandsAttention
there was an attempt to activate this window, but the window manager prevented this.
@ SkipTaskbar
indicates that a window should not be included on a taskbar.
@ FullScreen
indicates that a window should fill the entire screen and have no window decorations.
@ SkipSwitcher
indicates that a window should not be included on a switcher.
@ Modal
indicates that this is a modal dialog box.
@ KeepAbove
indicates that a window should on top of most windows (but below fullscreen windows).
@ Hidden
indicates that a window should not be visible on the screen (e.g.
@ SkipPager
indicates that a window should not be included on a pager.
@ KeepBelow
indicates that a window should be below most windows (but above any desktop windows).
@ Focused
indicates that a client should render as though it has focus Only the window manager is allowed to ch...
WindowTypeMask
Values for WindowType when they should be OR'ed together, e.g.
@ OnScreenDisplayMask
NON STANDARD.
@ CriticalNotificationMask
NON STANDARD.
@ AllTypesMask
All window types.
@ AppletPopupMask
NON STANDARD.
static bool typeMatchesMask(WindowType type, WindowTypes mask)
Returns true if the given window type matches the mask given using WindowTypeMask flags.
QFlags< WindowTypeMask > WindowTypes
Stores a combination of WindowTypeMask values.
DesktopLayoutCorner
Starting corner for desktop layout.
@ Splash
indicates that this window is a splash screen window.
@ Notification
indicates a notification window
@ Desktop
indicates a desktop feature.
@ DNDIcon
indicates a window that represents the dragged object during DND operation
@ Normal
indicates that this is a normal, top-level window
@ Unknown
indicates that the window did not define a window type.
@ OnScreenDisplay
indicates an On Screen Display window (such as volume feedback)
@ TopMenu
indicates a toplevel menu (AKA macmenu).
@ AppletPopup
indicates that this window is an applet.
@ Tooltip
indicates a tooltip window
@ Dialog
indicates that this is a dialog window
@ Toolbar
indicates a toolbar window
@ Menu
indicates a pinnable (torn-off) menu window
@ DropdownMenu
indicates a dropdown menu (from a menubar typically)
@ PopupMenu
indicates a popup menu (a context menu typically)
@ CriticalNotification
indicates a critical notification (such as battery is running out)
@ ComboBox
indicates that the window is a list for a combobox
@ Dock
indicates a dock or panel feature
@ Utility
indicates a utility window
@ Client
indicates that the application is a client application.
@ WindowManager
indicates that the application is a window manager application.
QFlags< Protocol > Protocols
Stores a combination of Protocol values.
Property2
Supported properties.
QFlags< Action > Actions
Stores a combination of Action values.
static int timestampCompare(unsigned long time1, unsigned long time2)
Compares two X timestamps, taking into account wrapping and 64bit architectures.
Property
Supported properties.
RequestSource
Source of the request.
@ FromApplication
indicates that the request comes from a normal application
@ FromTool
indicated that the request comes from pager or similar tool
QFlags< Property > Properties
Stores a combination of Property values.
QFlags< State > States
Stores a combination of State values.
Direction
Direction for WMMoveResize.
static int timestampDiff(unsigned long time1, unsigned long time2)
Returns a difference of two X timestamps, time2 - time1, where time2 must be later than time1,...
QFlags< Property2 > Properties2
Stores a combination of Property2 values.
Action
Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).
MappingState
Client window mapping state.
@ Iconic
indicates that the client window is not visible, but its icon is.
@ Withdrawn
indicates that neither the client window nor its icon is visible.
@ Visible
indicates the client window is visible to the user.
QPoint topLeft() const const
int bottom_width
Bottom border of the strut, width and range.
NETExtendedStrut()
Constructor to initialize this struct to 0,0,0,0.
int left_width
Left border of the strut, width and range.
int right_width
Right border of the strut, width and range.
int top_width
Top border of the strut, width and range.
bool isSet() const
Convenience check to make sure that we are not holding the initial (invalid) values.
int right
Monitor index whose right border defines the right edge of the topology.
NETFullscreenMonitors()
Constructor to initialize this struct to -1,0,0,0 (an initialized, albeit invalid,...
int top
Monitor index whose top border defines the top edge of the topology.
int left
Monitor index whose left border defines the left edge of the topology.
int bottom
Monitor index whose bottom border defines the bottom edge of the topology.
NETSize size
Size of the icon.
unsigned char * data
Image data for the icon.
NETIcon()
Constructor to initialize this icon to 0x0 with data=0.
Simple point class for NET classes.
NETPoint()
Constructor to initialize this point to 0,0.
NETPoint pos
Position of the rectangle.
NETSize size
Size of the rectangle.
Simple size class for NET classes.
NETSize()
Constructor to initialize this size to 0x0.
int bottom
Bottom border of the strut.
int left
Left border of the strut.
int right
Right border of the strut.
int top
Top border of the strut.
NETStrut()
Constructor to initialize this struct to 0,0,0,0.