~smspillaz/compiz-core/compiz-core.fix_978900

« back to all changes in this revision

Viewing changes to src/event.cpp

  • Committer: Daniel van Vugt
  • Date: 2012-03-21 08:34:44 UTC
  • mfrom: (3064.1.1 fix-960831)
  • Revision ID: daniel.van.vugt@canonical.com-20120321083444-0motk0mtr3702j6j
Don't allow plugins (unity) to interfere with tap detection by blocking
compiz-core from handling key events (LP: #960831)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1060
1060
void
1061
1061
CompScreenImpl::alwaysHandleEvent (XEvent *event)
1062
1062
{
 
1063
    /*
 
1064
     * Critical event handling that cannot be overridden by plugins
 
1065
     */
 
1066
    
 
1067
    if (event->type == ButtonPress || event->type == KeyPress)
 
1068
        priv->possibleTap = NULL;
 
1069
 
1063
1070
    eventHandled = true;  // if we return inside WRAPABLE_HND_FUNCTN
1064
1071
 
1065
1072
    handleEvent (event);
1066
1073
 
1067
 
    /*
1068
 
     * Critical event handling that cannot be overridden by plugins
1069
 
     */
1070
 
 
1071
1074
    bool keyEvent = (event->type == KeyPress || event->type == KeyRelease);
1072
1075
 
1073
1076
    /* Always either replay the keyboard or consume the key