home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / netwm_def.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-10-08  |  19.3 KB  |  671 lines

  1. /*
  2.  
  3.   Copyright (c) 2000 Troll Tech AS
  4.   Copyright (c) 2003 Lubos Lunak <l.lunak@kde.org>
  5.  
  6.   Permission is hereby granted, free of charge, to any person obtaining a
  7.   copy of this software and associated documentation files (the "Software"),
  8.   to deal in the Software without restriction, including without limitation
  9.   the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10.   and/or sell copies of the Software, and to permit persons to whom the
  11.   Software is furnished to do so, subject to the following conditions:
  12.  
  13.   The above copyright notice and this permission notice shall be included in
  14.   all copies or substantial portions of the Software.
  15.  
  16.   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17.   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18.   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  19.   THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20.   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  21.   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  22.   DEALINGS IN THE SOFTWARE.
  23.  
  24. */
  25.  
  26. #ifndef   __netwm_def_h
  27. #define   __netwm_def_h
  28.  
  29. #include <kdelibs_export.h>
  30.  
  31. /**
  32.   Simple point class for NET classes.
  33.  
  34.   This class is a convenience class defining a point x, y.  The existence of
  35.   this class is to keep the implementation from being dependant on a
  36.   separate framework/library.
  37.  
  38.   NETPoint is only used by the NET API. Usually QPoint is the 
  39.   appropriate class for representing a point.
  40.  
  41.   @author Bradley T. Hughes <bhughes@trolltech.com>
  42. **/
  43.  
  44. struct NETPoint {
  45.     /**
  46.        Constructor to initialize this point to 0,0.
  47.     **/
  48.     NETPoint() : x(0), y(0) { }
  49.  
  50.     /*
  51.        Public data member.
  52.     **/
  53.     int x, ///< x coordinate.
  54.       y;   ///< y coordinate
  55. };
  56.  
  57.  
  58. /**
  59.   Simple size class for NET classes.
  60.  
  61.   This class is a convenience class defining a size width by height.  The
  62.   existence of this class is to keep the implementation from being dependant
  63.   on a separate framework/library.
  64.  
  65.   NETSize is only used by the NET API. Usually QSize is the 
  66.   appropriate class for representing a size.
  67.  
  68.   @author Bradley T. Hughes <bhughes@trolltech.com>
  69. **/
  70.  
  71. struct NETSize {
  72.     /**
  73.        Constructor to initialize this size to 0x0
  74.     **/
  75.     NETSize() : width(0), height(0) { }
  76.  
  77.     /*
  78.        Public data member.
  79.     **/
  80.     int width,  ///< Width.
  81.       height;   ///< Height.
  82. };
  83.  
  84. /**
  85.    Simple rectangle class for NET classes.
  86.  
  87.    This class is a convenience class defining a rectangle as a point x,y with a
  88.    size width by height.  The existence of this class is to keep the implementation
  89.    from being dependant on a separate framework/library;
  90.  
  91.    NETRect is only used by the NET API. Usually QRect is the 
  92.    appropriate class for representing a rectangle.
  93. **/
  94. struct NETRect {
  95.     /**
  96.        Position of the rectangle.
  97.  
  98.        @see NETPoint
  99.     **/
  100.     NETPoint pos;
  101.  
  102.     /**
  103.        Size of the rectangle.
  104.  
  105.        @see NETSize
  106.     **/
  107.     NETSize size;
  108. };
  109.  
  110.  
  111. /**
  112.    Simple icon class for NET classes.
  113.  
  114.    This class is a convenience class defining an icon of size width by height.
  115.    The existence of this class is to keep the implementation from being
  116.    dependant on a separate framework/library.
  117.  
  118.    NETIcon is only used by the NET API. Usually QIcon is the 
  119.    appropriate class for representing an icon.
  120. **/
  121.  
  122. struct NETIcon {
  123.     /**
  124.        Constructor to initialize this icon to 0x0 with data=0
  125.     **/
  126.     NETIcon() : data(0) { }
  127.  
  128.     /**
  129.        Size of the icon.
  130.  
  131.        @see NETSize
  132.     **/
  133.     NETSize size;
  134.  
  135.     /**
  136.        Image data for the icon.  This is an array of 32bit packed CARDINAL ARGB
  137.        with high byte being A, low byte being B. First two bytes are width, height.
  138.        Data is in rows, left to right and top to bottom.
  139.     **/
  140.     unsigned char *data;
  141. };
  142.  
  143.  
  144. /**
  145.    Partial strut class for NET classes.
  146.  
  147.    This class is a convenience class defining a strut with left, right, top and
  148.    bottom border values, and ranges for them.  The existence of this class is to
  149.    keep the implementation from being dependant on a separate framework/library.
  150.    See the _NET_WM_STRUT_PARTIAL property in the NETWM spec.
  151. **/
  152.  
  153. struct NETExtendedStrut {
  154.     /**
  155.        Constructor to initialize this struct to 0,0,0,0
  156.     **/
  157.     NETExtendedStrut() : left_width(0), left_start(0), left_end(0),
  158.         right_width(0), right_start(0), right_end(0), top_width(0), top_start(0), top_end(0),
  159.         bottom_width(0), bottom_start(0), bottom_end(0) {}
  160.  
  161.     /**
  162.        Left border of the strut, width and range.
  163.            **/
  164.     int left_width, left_start, left_end;
  165.  
  166.     /**
  167.        Right border of the strut, width and range.
  168.     **/
  169.     int right_width, right_start, right_end;
  170.  
  171.     /**
  172.        Top border of the strut, width and range.
  173.            **/
  174.     int top_width, top_start, top_end;
  175.  
  176.     /**
  177.        Bottom border of the strut, width and range.
  178.            **/
  179.     int bottom_width, bottom_start, bottom_end;
  180.     
  181. };
  182.  
  183.  
  184. /**
  185.    @deprecated use NETExtendedStrut
  186.  
  187.    Simple strut class for NET classes.
  188.  
  189.    This class is a convenience class defining a strut with left, right, top and
  190.    bottom border values.  The existence of this class is to keep the implementation
  191.    from being dependant on a separate framework/library. See the _NET_WM_STRUT
  192.    property in the NETWM spec.
  193. **/
  194.  
  195. struct NETStrut {
  196.     /**
  197.        Constructor to initialize this struct to 0,0,0,0
  198.     **/
  199.     NETStrut() : left(0), right(0), top(0), bottom(0) { }
  200.  
  201.     /**
  202.        Left border of the strut.
  203.            **/
  204.     int left;
  205.  
  206.     /**
  207.        Right border of the strut.
  208.     **/
  209.     int right;
  210.  
  211.     /**
  212.        Top border of the strut.
  213.            **/
  214.     int top;
  215.  
  216.     /**
  217.        Bottom border of the strut.
  218.            **/
  219.     int bottom;
  220. };
  221.  
  222.  
  223. /**
  224.   Base namespace class.
  225.  
  226.   The NET API is an implementation of the NET Window Manager Specification.
  227.  
  228.   This class is the base class for the NETRootInfo and NETWinInfo classes, which
  229.   are used to retrieve and modify the properties of windows. To keep
  230.   the namespace relatively clean, all enums are defined here.
  231.   
  232.   @see http://www.freedesktop.org/standards/wm-spec/
  233.  **/
  234.  
  235. class KDECORE_EXPORT NET {
  236. public:
  237.     /**
  238.        Application role.  This is used internally to determine how several action
  239.        should be performed (if at all).
  240.  
  241.        @li Client indicates that the application is a client application.
  242.  
  243.        @li WindowManager indicates that the application is a window manager
  244.        application.
  245.     **/
  246.  
  247.     enum Role {
  248.     Client,
  249.     WindowManager
  250.     };
  251.  
  252.     /**
  253.        Window type.
  254.  
  255.        @li Unknown indicates that the window did not define a window type.
  256.  
  257.        @li Normal indicates that this is a normal, top-level window. Windows with
  258.        Unknown window type or WM_TRANSIENT_FOR unset must be taken as this type.
  259.  
  260.        @li Desktop indicates a desktop feature. This can include a single window
  261.        containing desktop icons with the same dimensions as the screen, allowing
  262.        the desktop environment to have full control of the desktop, without the
  263.        need for proxying root window clicks.
  264.  
  265.        @li Dock indicates a dock or panel feature. Typically a window manager would
  266.        keep such windows on top of all other windows.
  267.  
  268.        @li Toolbar and Menu indicate toolbar and pinnable menu windows, respectively.
  269.  
  270.        @li Dialog indicates that this is a dialog window. If _NET_WM_WINDOW_TYPE is
  271.        not set, then windows with WM_TRANSIENT_FOR set must be taken as this type.
  272.  
  273.        @li Override - deprecated, has unclear meaning and is KDE-only.
  274.        
  275.        @li TopMenu indicates a toplevel menu (AKA macmenu). This is a KDE extension to the
  276.        _NET_WM_WINDOW_TYPE mechanism.
  277.  
  278.        @li DropdownMenu - dropdown menu (from a menubar typically)
  279.        
  280.        @li PopupMenu - a popup menu (a context menu typically)
  281.        
  282.        @li Tooltip - a tooltip window
  283.        
  284.        @li Notification - a notification window
  285.        
  286.        @li ComboBox - a list window for a combobox
  287.  
  288.        @li DNDIcon - a window that represents the dragged object during DND operation
  289.  
  290.        Note that some window types are typically used only on override-redirect
  291.        windows (WX11BypassWM flag).
  292.     **/
  293.  
  294.     enum WindowType {
  295.     Unknown  = -1,
  296.     Normal   = 0,
  297.     Desktop  = 1,
  298.     Dock     = 2,
  299.     Toolbar  = 3,
  300.            Menu     = 4,
  301.     Dialog   = 5,
  302.     Override = 6, ///< @deprecated
  303.         TopMenu  = 7, // NON STANDARD
  304.     Tool     = Toolbar, // This will go away soon, COMPAT (How soon? :)
  305.     Utility  = 8,    ///< @since 3.2
  306.     Splash   = 9,   ///< @since 3.2
  307.         DropdownMenu = 10,  ///< @since 3.5.7
  308.         PopupMenu    = 11,  ///< @since 3.5.7
  309.         Tooltip      = 12,  ///< @since 3.5.7
  310.         Notification = 13,  ///< @since 3.5.7
  311.         ComboBox     = 14,  ///< @since 3.5.7
  312.         DNDIcon      = 15   ///< @since 3.5.7
  313.     };
  314.     
  315.     /**
  316.         Values for WindowType when they should be OR'ed together, e.g.
  317.         for the properties argument of the NETRootInfo constructor.
  318.         @since 3.2
  319.     **/
  320.     enum WindowTypeMask {
  321.     NormalMask   = 1<<0,
  322.     DesktopMask  = 1<<1,
  323.     DockMask     = 1<<2,
  324.     ToolbarMask  = 1<<3,
  325.     MenuMask     = 1<<4,
  326.     DialogMask   = 1<<5,
  327.     OverrideMask = 1<<6,
  328.         TopMenuMask  = 1<<7,
  329.     UtilityMask  = 1<<8,
  330.     SplashMask   = 1<<9,
  331.         DropdownMenuMask = 1<<10,  ///< @since 3.5.7
  332.         PopupMenuMask    = 1<<11,  ///< @since 3.5.7
  333.         TooltipMask      = 1<<12,  ///< @since 3.5.7
  334.         NotificationMask = 1<<13,  ///< @since 3.5.7
  335.         ComboBoxMask     = 1<<14,  ///< @since 3.5.7
  336.         DNDIconMask      = 1<<15   ///< @since 3.5.7
  337.     };
  338.  
  339.     // KDE4 move to WindowTypeMask
  340.     enum { AllTypesMask = 0LU-1 };
  341.  
  342.     /**
  343.      * Returns true if the given window type matches the mask given
  344.      * using WindowTypeMask flags.
  345.      */    
  346.     static bool typeMatchesMask( WindowType type, unsigned long mask );
  347.  
  348.     /**
  349.        Window state.
  350.  
  351.        @li Modal ndicates that this is a modal dialog box. The WM_TRANSIENT_FOR hint
  352.        MUST be set to indicate which window the dialog is a modal for, or set to
  353.        the root window if the dialog is a modal for its window group.
  354.  
  355.        @li Sticky indicates that the Window Manager SHOULD keep the window's position
  356.        fixed on the screen, even when the virtual desktop scrolls. Note that this is
  357.        different from being kept on all desktops.
  358.  
  359.        @li Max{Vert,Horiz} indicates that the window is {vertically,horizontally}
  360.        maximized.
  361.  
  362.        @li Max is more convenient than MaxVert | MaxHoriz.
  363.  
  364.        @li Shaded indicates that the window is shaded (rolled-up).
  365.  
  366.        @li SkipTaskbar indicates that a window should not be included on a taskbar.
  367.  
  368.        @li SkipPager indicates that a window should not be included on a pager.
  369.  
  370.        @li Hidden indicates that a window should not be visible on the screen (e.g. when minimised).
  371.            Only the window manager is allowed to change it.
  372.  
  373.        @li FullScreen indicates that a window should fill the entire screen and have no window decorations.
  374.  
  375.        @li KeepAbove indicates that a window should on top of most windows (but below fullscreen windows).
  376.  
  377.        @li KeepBelow indicates that a window should be below most windows (but above any desktop windows).
  378.  
  379.        @li StaysOnTop is an obsolete name for KeepAbove.
  380.        
  381.        @li DemandsAttention there was an attempt to activate this window, but the window manager prevented
  382.            this. E.g. taskbar should mark such window specially to bring user's attention to this window.
  383.            Only the window manager is allowed to change it.
  384.  
  385.        Note that KeepAbove (StaysOnTop) and KeepBelow are meant as user preference and applications
  386.        should avoid setting these states themselves.
  387.     **/
  388.  
  389.     enum State {
  390.     Modal        = 1<<0,
  391.     Sticky       = 1<<1,
  392.     MaxVert      = 1<<2,
  393.     MaxHoriz     = 1<<3,
  394.     Max = MaxVert | MaxHoriz,
  395.     Shaded       = 1<<4,
  396.     SkipTaskbar  = 1<<5,
  397.     KeepAbove    = 1<<6,    ///< @since 3.2
  398.     StaysOnTop   = KeepAbove,    // NOT STANDARD
  399.     SkipPager    = 1<<7,
  400.     Hidden       = 1<<8,    ///< @since 3.2
  401.     FullScreen   = 1<<9,    ///< @since 3.2
  402.     KeepBelow    = 1<<10,    ///< @since 3.2
  403.         DemandsAttention = 1<<11  ///< @since 3.2
  404.     };
  405.  
  406.     /**
  407.        Direction for WMMoveResize.
  408.  
  409.        When a client wants the Window Manager to start a WMMoveResize, it should
  410.        specify one of:
  411.  
  412.        @li TopLeft
  413.        @li Top
  414.        @li TopRight
  415.        @li Right
  416.        @li BottomRight
  417.        @li Bottom
  418.        @li BottomLeft
  419.        @li Left
  420.        @li Move (for movement only)
  421.        @li KeyboardSize (resizing via keyboard)
  422.        @li KeyboardMove (movement via keyboard)
  423.     **/
  424.  
  425.     enum Direction {
  426.     TopLeft      = 0,
  427.     Top          = 1,
  428.     TopRight     = 2,
  429.     Right        = 3,
  430.     BottomRight  = 4,
  431.     Bottom       = 5,
  432.     BottomLeft   = 6,
  433.     Left         = 7,
  434.     Move         = 8,  // movement only
  435.     /**
  436.        @since 3.2
  437.     **/
  438.     KeyboardSize = 9,  // size via keyboard
  439.     /**
  440.        @since 3.2
  441.     **/
  442.     KeyboardMove = 10, // move via keyboard
  443.     /**
  444.       @since 3.5.1
  445.     **/
  446.     MoveResizeCancel = 11 // to ask the WM to stop moving a window
  447.     };
  448.  
  449.     /**
  450.        Client window mapping state.  The class automatically watches the mapping
  451.        state of the client windows, and uses the mapping state to determine how
  452.        to set/change different properties.
  453.  
  454.        @li Visible indicates the client window is visible to the user.
  455.  
  456.        @li Withdrawn indicates that neither the client window nor its icon is visible.
  457.  
  458.        @li Iconic indicates that the client window is not visible, but its icon is.
  459.            This can be when the window is minimized or when it's on a different
  460.            virtual desktop. See also NET::Hidden.
  461.     **/
  462.  
  463.     // KDE4 aaarghl, this doesn't map correctly to Xlib #defines
  464.     enum MappingState {
  465.     Visible, // ie. NormalState
  466.     Withdrawn,
  467.     Iconic
  468.     };
  469.  
  470.     /**
  471.       Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).
  472.       @since 3.2
  473.     **/
  474.     enum Action {
  475.         ActionMove           = 1<<0,
  476.         ActionResize         = 1<<1,
  477.         ActionMinimize       = 1<<2,
  478.         ActionShade          = 1<<3,
  479.         ActionStick          = 1<<4,
  480.         ActionMaxVert        = 1<<5,
  481.         ActionMaxHoriz       = 1<<6,
  482.         ActionMax            = ActionMaxVert | ActionMaxHoriz,
  483.         ActionFullScreen     = 1<<7,
  484.         ActionChangeDesktop  = 1<<8,
  485.         ActionClose          = 1<<9
  486.     };
  487.     
  488.     /**
  489.        Supported properties.  Clients and Window Managers must define which
  490.        properties/protocols it wants to support.
  491.  
  492.        Root/Desktop window properties and protocols:
  493.  
  494.        @li Supported
  495.        @li ClientList
  496.        @li ClientListStacking
  497.        @li NumberOfDesktops
  498.        @li DesktopGeometry
  499.        @li DesktopViewport
  500.        @li CurrentDesktop
  501.        @li DesktopNames
  502.        @li ActiveWindow
  503.        @li WorkArea
  504.        @li SupportingWMCheck
  505.        @li VirtualRoots
  506.        @li CloseWindow
  507.        @li WMMoveResize
  508.  
  509.        Client window properties and protocols:
  510.  
  511.        @li WMName
  512.        @li WMVisibleName
  513.        @li WMDesktop
  514.        @li WMWindowType
  515.        @li WMState
  516.        @li WMStrut  (obsoleted by WM2ExtendedStrut)
  517.        @li WMIconGeometry
  518.        @li WMIcon
  519.        @li WMPid
  520.        @li WMVisibleIconName
  521.        @li WMIconName
  522.  
  523.        ICCCM properties (provided for convenience):
  524.  
  525.        @li XAWMState
  526.  
  527.        Extended KDE protocols and properties (NOT STANDARD):
  528.  
  529.        @li KDESystemTrayWindows
  530.        @li WMKDESystemTrayWinFor
  531.        @li WMKDEFrameStrut
  532.     **/
  533.  
  534.     enum Property {
  535.     // root
  536.     Supported             = 1<<0,
  537.     ClientList            = 1<<1,
  538.     ClientListStacking    = 1<<2,
  539.     NumberOfDesktops      = 1<<3,
  540.     DesktopGeometry       = 1<<4,
  541.     DesktopViewport       = 1<<5,
  542.     CurrentDesktop        = 1<<6,
  543.     DesktopNames          = 1<<7,
  544.     ActiveWindow          = 1<<8,
  545.     WorkArea              = 1<<9,
  546.     SupportingWMCheck     = 1<<10,
  547.     VirtualRoots          = 1<<11,
  548.     KDESystemTrayWindows  = 1<<12, // NOT STANDARD
  549.     CloseWindow           = 1<<13,
  550.     WMMoveResize          = 1<<14,
  551.  
  552.     // window
  553.     WMName                = 1<<15,
  554.     WMVisibleName         = 1<<16,
  555.     WMDesktop             = 1<<17,
  556.     WMWindowType          = 1<<18,
  557.     WMState               = 1<<19,
  558.     WMStrut               = 1<<20,
  559.     WMIconGeometry        = 1<<21,
  560.     WMIcon                = 1<<22,
  561.     WMPid                 = 1<<23,
  562.     WMHandledIcons        = 1<<24,
  563.     WMPing                = 1<<25,
  564.     WMKDESystemTrayWinFor = 1<<26, // NOT STANDARD
  565.     XAWMState             = 1<<27, // NOT STANDARD
  566.         WMFrameExtents        = 1<<28, ///< @since 3.5
  567.     WMKDEFrameStrut       = WMFrameExtents, // NOT STANDARD
  568.  
  569.     // Need to be reordered
  570.     WMIconName            = 1<<29,
  571.     WMVisibleIconName     = 1<<30,
  572.     WMGeometry          = 1<<31
  573.     };
  574.     
  575.     /**
  576.         Supported properties. This enum is an extension to NET::Property,
  577.         because them enum is limited only to 32 bits.
  578.  
  579.         Client window properties and protocols:
  580.  
  581.         @li WM2UserTime
  582.         @li WM2StartupId
  583.         @li WM2TransientFor mainwindow for the window (WM_TRANSIENT_FOR)
  584.         @li WM2GroupLeader  group leader (window_group in WM_HINTS)
  585.         @li WM2AllowedActions
  586.         @li WM2RestackWindow
  587.         @li WM2MoveResizeWindow
  588.         @li WM2ExtendedStrut
  589.         @li WM2TemporaryRules internal, for kstart
  590.         @li WM2WindowClass  WM_CLASS
  591.         @li WM2WindowRole   WM_WINDOW_ROLE
  592.         @li WM2ClientMachine WM_CLIENT_MACHINE
  593.         @li WM2DesktopLayout _NET_DESKTOP_LAYOUT
  594.         
  595.         @since 3.2
  596.  
  597.     **/
  598.     enum Property2 {
  599.         WM2UserTime            = 1<<0,
  600.         WM2StartupId           = 1<<1,
  601.         WM2TransientFor        = 1<<2,
  602.         WM2GroupLeader         = 1<<3,
  603.         WM2AllowedActions      = 1<<4,
  604.         WM2RestackWindow       = 1<<5,
  605.         WM2MoveResizeWindow    = 1<<6,
  606.         WM2ExtendedStrut       = 1<<7,
  607.         WM2TakeActivity        = 1<<8,
  608.         WM2KDETemporaryRules   = 1<<9,  // NOT STANDARD
  609.         WM2WindowClass         = 1<<10, ///< @since 3.3
  610.         WM2WindowRole          = 1<<11, ///< @since 3.3
  611.         WM2ClientMachine       = 1<<12, ///< @since 3.3
  612.         WM2ShowingDesktop      = 1<<13, ///< @since 3.5
  613.         WM2DesktopLayout       = 1<<15  ///< @since 3.5.8
  614.     };
  615.  
  616.     /**
  617.        Sentinel value to indicate that the client wishes to be visible on
  618.        all desktops.
  619.        @since 3.2
  620.      **/ 
  621.     enum { OnAllDesktops = -1 };
  622.     
  623.     /**
  624.        Source of the request.
  625.        @li FromApplication the request comes from a normal application
  626.        @li FromTool the request comes from pager or similar tool
  627.        @since 3.2
  628.     **/
  629.     // must match the values for data.l[0] field in _NET_ACTIVE_WINDOW message
  630.     enum RequestSource {
  631.         FromUnknown, // internal
  632.         FromApplication,
  633.         FromTool
  634.     };
  635.     
  636.     /**
  637.       Orientation.
  638.     **/
  639.     enum Orientation {
  640.         OrientationHorizontal = 0,
  641.         OrientationVertical = 1
  642.     };
  643.     
  644.     /**
  645.      Starting corner for desktop layout.
  646.     **/
  647.     enum DesktopLayoutCorner {
  648.         DesktopLayoutCornerTopLeft = 0,
  649.         DesktopLayoutCornerTopRight = 1,
  650.         DesktopLayoutCornerBottomLeft = 2,
  651.         DesktopLayoutCornerBottomRight = 3
  652.     };
  653.     
  654.     /**
  655.      Compares two X timestamps, taking into account wrapping and 64bit architectures.
  656.      Return value is like with strcmp(), 0 for equal, -1 for time1 < time2, 1 for time1 > time2.
  657.      @since 3.5.3
  658.     */
  659.     static int timestampCompare( unsigned long time1, unsigned long time2 );
  660.     /**
  661.      Returns a difference of two X timestamps, time2 - time1, where time2 must be later than time1,
  662.      as returned by timestampCompare().
  663.      @since 3.5.3
  664.     */
  665.     static int timestampDiff( unsigned long time1_, unsigned long time2_ );
  666.  
  667. };
  668.  
  669.  
  670. #endif // __netwm_def_h
  671.