]>
Dogcows Code - chaz/openbox/blob - rootwindow.hh
5ff386e1dd99254afc5532ce0723e7cb8ef02f19
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 all desktops
57 void setDesktopNames(const otk::OBProperty::StringVect
&names
);
59 //! Sets the name of a desktop
61 @param i The index of the desktop to set the name for (base 0)
62 @param name The name to set for the desktop
64 void setDesktopName(int i
, const std::string
&name
);
66 virtual void propertyHandler(const XPropertyEvent
&e
);
67 virtual void clientMessageHandler(const XClientMessageEvent
&e
);
68 virtual void mapRequestHandler(const XMapRequestEvent
&);
This page took 0.036264 seconds and 3 git commands to generate.