}
#include "frame.hh"
+#include "config.hh"
#include "openbox.hh"
#include "otk/display.hh"
#include "otk/surface.hh"
applyStyle(*otk::RenderStyle::style(_client->screen()));
- _layout = openbox->screen(_client->screen())->config().titlebar_layout;
+ _layout = "ITMC";
+ python_get_string("titlebar_layout", &_layout);
// register all of the windows with the event dispatcher
Window *w = allWindows();
_client->ignore_unmaps += 2;
// select the event mask on the client's parent (to receive config/map req's)
- XSelectInput(**otk::display, _plate, SubstructureRedirectMask);
+ // the ButtonPress is to catch clicks on the client border
+ XSelectInput(**otk::display, _plate, (SubstructureRedirectMask |
+ ButtonPressMask));
// map the client so it maps when the frame does
XMapWindow(**otk::display, _client->window());