all repos — openbox @ 1dac42d9ed074bcd44f9d1016b0971ae473cc2eb

openbox fork - make it a bit more like ryudo

catch button presses on the client border (the plate's border)
Dana Jansens danakj@orodu.net
commit

1dac42d9ed074bcd44f9d1016b0971ae473cc2eb

parent

d2a893c0b12cf949b81e860ad11896b6a67d5190

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/frame.ccsrc/frame.cc

@@ -816,7 +816,9 @@ if (openbox->state() == Openbox::State_Starting)

_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());