]>
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
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>
21 #include "otk/screeninfo.hh"
22 #include "otk/eventhandler.hh"
23 #include "otk/property.hh"
27 //! Maintains the state of a root window's properties.
29 OBRootWindow maintains the state of a root window. The state consists of the
30 hints that the wm sets on the window, such as the number of desktops,
33 OBRootWindow also manages client messages for the root window.
35 class OBRootWindow
: public otk::OtkEventHandler
{
37 //! Information about this screen
38 const otk::ScreenInfo
*_info
;
40 //! The names of all desktops
41 otk::OBProperty::StringVect _names
;
43 //! Get desktop names from the
44 void updateDesktopNames();
47 //! Constructs a new OBRootWindow for a screen
49 @param screen The screen whose root window to wrap
51 OBRootWindow(int screen
);
52 //! Destroys the OBRootWindow object
53 virtual ~OBRootWindow();
55 //! Sets the name of a desktop
57 @param i The index of the desktop to set the name for (base 0)
58 @param name The name to set for the desktop
60 void setDesktopName(int i
, const std::string
&name
);
62 virtual void propertyHandler(const XPropertyEvent
&e
);
63 virtual void clientMessageHandler(const XClientMessageEvent
&e
);
64 virtual void mapRequestHandler(const XMapRequestEvent
&);
65 virtual void configureRequestHandler(const XConfigureRequestEvent
&e
);
This page took 0.036288 seconds and 4 git commands to generate.