]> Dogcows Code - chaz/openbox/blobdiff - src/openbox.cc
get the min/max sizes
[chaz/openbox] / src / openbox.cc
index 48fae7a2e73ebed58ccaa560ebdc94081ef35d57..c5a93eeb25003d278f6299958b15d9d597a297e6 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "../version.h"
 #include "openbox.hh"
+#include "otk/property.hh"
 #include "otk/display.hh"
 
 extern "C" {
@@ -40,7 +41,6 @@ extern "C" {
 
 namespace ob {
 
-
 Openbox *Openbox::instance = (Openbox *) 0;
 
 
@@ -76,6 +76,7 @@ Openbox::Openbox(int argc, char **argv)
 
   _displayreq = (char*) 0;
   _argv0 = argv[0];
+  _doshutdown = false;
 
   parseCommandLine(argc, argv);
 
@@ -94,7 +95,8 @@ Openbox::Openbox(int argc, char **argv)
   sigaction(SIGINT, &action, (struct sigaction *) 0);
   sigaction(SIGHUP, &action, (struct sigaction *) 0);
 
-
+  _property = new otk::OBProperty();
+  
   
   _state = State_Normal; // done starting
 }
@@ -208,5 +210,22 @@ void Openbox::eventLoop()
 }
 
 
+void Openbox::addClient(Window window, OBClient *client)
+{
+  _clients[window] = client;
+}
+
+
+void Openbox::removeClient(Window window)
+{
+  _clients[window] = (OBClient *) 0;
+}
+
+
+OBClient *Openbox::findClient(Window window)
+{
+  return _clients[window];
+}
+
 }
 
This page took 0.020285 seconds and 4 git commands to generate.