X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fframe.cc;h=4e77d10636271fdad42f11fab7bc045f19ba83e7;hb=598c5d6c07118517b47d7c416a79dc9743271aa8;hp=d846692e0eb3417466343e8e3d5d8ab75b639bc0;hpb=2ffeaf1ecdcfc47281de6e5b9d9ce3262e7cf6c8;p=chaz%2Fopenbox diff --git a/src/frame.cc b/src/frame.cc index d846692e..4e77d106 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -9,6 +9,7 @@ extern "C" { } #include "frame.hh" +#include "config.hh" #include "openbox.hh" #include "otk/display.hh" #include "otk/surface.hh" @@ -99,7 +100,8 @@ Frame::Frame(Client *client) 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(); @@ -816,7 +818,9 @@ void Frame::grabClient() _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());