all repos — openbox @ a460f0bc48ab75ecc35b8f70bba9faec78cdf97a

openbox fork - make it a bit more like ryudo

add comments for rming masks from the events
Dana Jansens danakj@orodu.net
commit

a460f0bc48ab75ecc35b8f70bba9faec78cdf97a

parent

f3865bb12c2b3506e181f15f09b8429a59a618f8

1 files changed, 4 insertions(+), 0 deletions(-)

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

@@ -71,6 +71,7 @@ OBWidget *w = dynamic_cast<OBWidget*>

(Openbox::instance->findHandler(e.window)); assert(w); // everything should be a widget + // kill off the Button1Mask etc, only want the modifiers unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask); ButtonData *data = new_button_data(e.window, e.time, state, e.button,

@@ -108,6 +109,7 @@ e.x < attr.width && e.y < attr.height))

return; // run the CLICK python hook + // kill off the Button1Mask etc, only want the modifiers unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask); ButtonData *data = new_button_data(e.window, e.time, state, e.button,

@@ -168,6 +170,7 @@ void OBActions::keyPressHandler(const XKeyEvent &e)

{ OtkEventHandler::keyPressHandler(e); + // kill off the Button1Mask etc, only want the modifiers unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask); Openbox::instance->bindings()->fireKey(state, e.keycode, e.time);

@@ -199,6 +202,7 @@ (Openbox::instance->findHandler(e.window));

assert(w); // everything should be a widget // run the MOTION python hook + // kill off the Button1Mask etc, only want the modifiers unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask); unsigned int button = _posqueue[0]->button;