summaryrefslogtreecommitdiff
path: root/src/openbox.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/openbox.hh')
-rw-r--r--src/openbox.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/openbox.hh b/src/openbox.hh
index 30dc9f68..abdcfef3 100644
--- a/src/openbox.hh
+++ b/src/openbox.hh
@@ -16,8 +16,8 @@ extern "C" {
#include <string>
#include <vector>
+#include <map>
-#include "python.hh"
#include "otk/screeninfo.hh"
#include "otk/timerqueuemanager.hh"
#include "otk/property.hh"
@@ -68,6 +68,9 @@ public:
Cursor ur_angle; //!< For resizing the right corner of a window
};
+ //! A map for looking up a specific client class from the window id
+ typedef std::map<Window, OBClient *> ClientMap;
+
//! A list of OBScreen classes
typedef std::vector<OBScreen *> ScreenList;
@@ -89,7 +92,7 @@ private:
char *_argv0;
//! A list of all managed clients
- PyDictObject *_clients;
+ ClientMap _clients;
//! A list of all the managed screens
ScreenList _screens;
@@ -166,8 +169,6 @@ public:
//! Returns the mouse cursors used throughout Openbox
inline const Cursors &cursors() const { return _cursors; }
- inline PyDictObject *clients() const { return _clients; }
-
//! The main function of the Openbox class
/*!
This function should be called after instantiating the Openbox class.