summaryrefslogtreecommitdiff
path: root/src/openbox.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-16 08:44:52 +0000
committerDana Jansens <danakj@orodu.net>2003-01-16 08:44:52 +0000
commitd8aff44a6a639de83ba8f0957f9f9f17f2a05532 (patch)
tree43ebc733819c4337599a55eaed7b701a3401d2a7 /src/openbox.cc
parent8b0daa912e72085994cfd804a60ba4113ba27148 (diff)
redo otk::Property. make it static.
Diffstat (limited to 'src/openbox.cc')
-rw-r--r--src/openbox.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/openbox.cc b/src/openbox.cc
index f4d11257..89948118 100644
--- a/src/openbox.cc
+++ b/src/openbox.cc
@@ -12,6 +12,7 @@
#include "python.hh"
#include "otk/property.hh"
#include "otk/assassin.hh"
+#include "otk/property.hh"
#include "otk/util.hh"
extern "C" {
@@ -114,7 +115,7 @@ Openbox::Openbox(int argc, char **argv)
sigaction(SIGHUP, &action, (struct sigaction *) 0);
otk::Timer::initialize();
- _property = new otk::Property();
+ otk::Property::initialize();
_actions = new Actions();
_bindings = new Bindings();
@@ -182,7 +183,6 @@ Openbox::~Openbox()
delete _bindings;
delete _actions;
- delete _property;
python_destroy();
@@ -370,9 +370,9 @@ void Openbox::setFocusedClient(Client *c)
for (it = _screens.begin(); it != end; ++it) {
int num = (*it)->number();
Window root = otk::display->screenInfo(num)->rootWindow();
- _property->set(root, otk::Property::net_active_window,
- otk::Property::Atom_Window,
- (c && _focused_screen == *it) ? c->window() : None);
+ otk::Property::set(root, otk::Property::atoms.net_active_window,
+ otk::Property::atoms.window,
+ (c && _focused_screen == *it) ? c->window() : None);
}
// call the python Focus callbacks