~vanvugt/compiz-core/fix-alt-bugs-2

« back to all changes in this revision

Viewing changes to src/event.cpp

  • Committer: Daniel van Vugt
  • Date: 2012-03-04 07:00:33 UTC
  • mfrom: (3033.1.1 fix-943223)
  • Revision ID: vanvugt@gmail.com-20120304070033-9rbpti1ocd4rudg2
Ungrab keyboard as soon as a key is pressed. Don't wait for it to be
released. This (probably) solves a regression apparently introduced in
r3006. (LP: #943223)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1057
1057
        XAllowEvents (priv->dpy, mode, event->xkey.time);
1058
1058
    }
1059
1059
 
1060
 
    if (priv->grabs.empty () && event->type == KeyRelease)
 
1060
    if (priv->grabs.empty () && event->type == KeyPress)
1061
1061
    {
1062
1062
        XUngrabKeyboard (priv->dpy, event->xkey.time);
1063
1063
        priv->tapGrab = false;