add comments for rming masks from the events
This commit is contained in:
parent
f3865bb12c
commit
a460f0bc48
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,7 @@ void OBActions::buttonPressHandler(const XButtonEvent &e)
|
||||||
(Openbox::instance->findHandler(e.window));
|
(Openbox::instance->findHandler(e.window));
|
||||||
assert(w); // everything should be a widget
|
assert(w); // everything should be a widget
|
||||||
|
|
||||||
|
// kill off the Button1Mask etc, only want the modifiers
|
||||||
unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
|
unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
|
||||||
Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask);
|
Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask);
|
||||||
ButtonData *data = new_button_data(e.window, e.time, state, e.button,
|
ButtonData *data = new_button_data(e.window, e.time, state, e.button,
|
||||||
|
@ -108,6 +109,7 @@ void OBActions::buttonReleaseHandler(const XButtonEvent &e)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// run the CLICK python hook
|
// run the CLICK python hook
|
||||||
|
// kill off the Button1Mask etc, only want the modifiers
|
||||||
unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
|
unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
|
||||||
Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask);
|
Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask);
|
||||||
ButtonData *data = new_button_data(e.window, e.time, state, e.button,
|
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);
|
OtkEventHandler::keyPressHandler(e);
|
||||||
|
|
||||||
|
// kill off the Button1Mask etc, only want the modifiers
|
||||||
unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
|
unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
|
||||||
Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask);
|
Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask);
|
||||||
Openbox::instance->bindings()->fireKey(state, e.keycode, e.time);
|
Openbox::instance->bindings()->fireKey(state, e.keycode, e.time);
|
||||||
|
@ -199,6 +202,7 @@ void OBActions::motionHandler(const XMotionEvent &e)
|
||||||
assert(w); // everything should be a widget
|
assert(w); // everything should be a widget
|
||||||
|
|
||||||
// run the MOTION python hook
|
// run the MOTION python hook
|
||||||
|
// kill off the Button1Mask etc, only want the modifiers
|
||||||
unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
|
unsigned int state = e.state & (ControlMask | ShiftMask | Mod1Mask |
|
||||||
Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask);
|
Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask);
|
||||||
unsigned int button = _posqueue[0]->button;
|
unsigned int button = _posqueue[0]->button;
|
||||||
|
|
Loading…
Reference in a new issue