diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-11 10:05:06 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-11 10:05:06 +0000 |
| commit | cee305244662d352a7ad5ab7ae22f6221c064d3d (patch) | |
| tree | d7d8baeef9a87d239baba8b60384ae534a18cc2e /src/xeventhandler.cc | |
| parent | fb0dd6cf9a839f9990ac877bf1b3d469d883b463 (diff) | |
not using any old blackbox classes anymore!
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); |
