all repos — openbox @ d1913d1d015efae0687f3703ca846f1ace42ded2

openbox fork - make it a bit more like ryudo

disable keyboard and mouse input while ob is starting or exiting
Dana Jansens danakj@orodu.net
commit

d1913d1d015efae0687f3703ca846f1ace42ded2

parent

8ebf2b6a3f095a7404bac3a2867355f33c1582d4

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

jump to
M openbox/event.copenbox/event.c

@@ -154,6 +154,8 @@ /* grab the lasttime and hack up the state */

switch (e->type) { case ButtonPress: case ButtonRelease: + if (ob_state != State_Running) return; + event_lasttime = e->xbutton.time; e->xbutton.state &= ~(LockMask | NumLockMask | ScrollLockMask); /* kill off the Button1Mask etc, only want the modifiers */

@@ -161,6 +163,8 @@ e->xbutton.state &= (ControlMask | ShiftMask | Mod1Mask |

Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask); break; case KeyPress: + if (ob_state != State_Running) return; + event_lasttime = e->xkey.time; e->xkey.state &= ~(LockMask | NumLockMask | ScrollLockMask); /* kill off the Button1Mask etc, only want the modifiers */

@@ -185,6 +189,8 @@ /* }*/

break; case KeyRelease: + if (ob_state != State_Running) return; + event_lasttime = e->xkey.time; e->xkey.state &= ~(LockMask | NumLockMask | ScrollLockMask); /* kill off the Button1Mask etc, only want the modifiers */

@@ -207,6 +213,8 @@ }

} break; case MotionNotify: + if (ob_state != State_Running) return; + event_lasttime = e->xmotion.time; e->xmotion.state &= ~(LockMask | NumLockMask | ScrollLockMask); /* kill off the Button1Mask etc, only want the modifiers */