~compiz-team/compiz/compiz.fix_1053280

« back to all changes in this revision

Viewing changes to src/event.cpp

  • Committer: Sam Spilsbury
  • Date: 2012-09-24 11:34:23 UTC
  • Revision ID: sam.spilsbury@canonical.com-20120924113423-sf6kjn2kn1l8sw3e
Move check to the right place

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
    if (!(option.value ().action ().state () & state))
112
112
        return false;
113
113
 
 
114
    if (!option.value ().action ().active ())
 
115
        return false;
 
116
 
114
117
    return true;
115
118
}
116
119
 
126
129
    if (option.value ().action ().initiate ().empty ())
127
130
        return false;
128
131
 
129
 
    if (!option.value ().action ().active ())
130
 
        return false;
131
 
 
132
132
    *action = &option.value ().action ();
133
133
 
134
134
    return true;