~vanvugt/compiz/fix-1068518

« back to all changes in this revision

Viewing changes to include/core/option.h

  • Committer: Tarmac
  • Author(s): Sam Spilsbury, Daniel van Vugt
  • Date: 2012-10-15 06:45:57 UTC
  • mfrom: (3382.2.17 fix_1053280)
  • Revision ID: tarmac-20121015064557-aj1a3e6ba7j95vlg
Don't trigger actions unless they are actually marked active. It is possible 
that we may have a passive button grab for other reasons than actions being 
bound, so actions which haven't been added should be ignored.
(LP: #1053280). Fixes: https://bugs.launchpad.net/bugs/1053280. Approved by jenkins, Daniel van Vugt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
 
243
243
        void reset ();
244
244
 
245
 
        CompString name ();
 
245
        const CompString & name () const;
246
246
 
247
 
        Type type ();
 
247
        Type type () const;
248
248
        Value & value ();
 
249
        const Value & value () const;
249
250
        Restriction & rest ();
250
251
 
251
252
        bool set (Value &val);
252
 
        bool isAction ();
 
253
        bool isAction () const;
253
254
 
254
255
        CompOption & operator= (const CompOption &option);
255
256