diff options
Diffstat (limited to 'src/xeventhandler.cc')
| -rw-r--r-- | src/xeventhandler.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/xeventhandler.cc b/src/xeventhandler.cc index afa5ecee..560aace2 100644 --- a/src/xeventhandler.cc +++ b/src/xeventhandler.cc @@ -8,13 +8,10 @@ #include "client.hh" #include "frame.hh" #include "openbox.hh" +#include "screen.hh" #include "otk/display.hh" #include "otk/rect.hh" -// XXX: REMOVE THIS SOON!!#! -#include "blackbox.hh" -#include "bbscreen.hh" - extern "C" { #include <X11/Xlib.h> #include <X11/Xutil.h> @@ -168,12 +165,9 @@ void OBXEventHandler::manageWindow(int screen, Window window) // XXX: position the window intelligenty } - // XXX: store a style somewheres cooler!! - otk::Style *style = ((Blackbox*)Openbox::instance)-> - searchScreen(RootWindow(otk::OBDisplay::display, screen))-> - getWindowStyle(); // create the decoration frame for the client window - client->frame = new OBFrame(client, style); + client->frame = new OBFrame(client, + Openbox::instance->screen(screen)->style()); // add all the client's decoration windows as event handlers for the client Openbox::instance->addClient(client->frame->window(), client); |
