]>
Dogcows Code - chaz/openbox/blob - src/rootwindow.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __rootwindow_hh
3 #define __rootwindow_hh
5 /*! @file rootwindow.hh
6 @brief The OBClient class maintains the state of a client window by handling
7 property changes on the window and some client messages
14 #include <X11/extensions/shape.h>
22 #include "otk/screeninfo.hh"
23 #include "otk/eventhandler.hh"
24 #include "otk/property.hh"
28 //! Maintains the state of a root window's properties.
30 OBRootWindow maintains the state of a root window. The state consists of the
31 hints that the wm sets on the window, such as the number of desktops,
34 OBRootWindow also manages client messages for the root window.
36 class OBRootWindow
: public otk::OtkEventHandler
, public OBWidget
{
38 //! Information about this screen
39 const otk::ScreenInfo
*_info
;
41 //! The names of all desktops
42 otk::OBProperty::StringVect _names
;
44 //! Get desktop names from the
45 void updateDesktopNames();
48 //! Constructs a new OBRootWindow for a screen
50 @param screen The screen whose root window to wrap
52 OBRootWindow(int screen
);
53 //! Destroys the OBRootWindow object
54 virtual ~OBRootWindow();
56 //! Sets the name of a desktop
58 @param i The index of the desktop to set the name for (base 0)
59 @param name The name to set for the desktop
61 void setDesktopName(int i
, const std::string
&name
);
63 virtual void propertyHandler(const XPropertyEvent
&e
);
64 virtual void clientMessageHandler(const XClientMessageEvent
&e
);
65 virtual void mapRequestHandler(const XMapRequestEvent
&);
This page took 0.034674 seconds and 4 git commands to generate.