~townsend/compiz/fix-lp1304531

« back to all changes in this revision

Viewing changes to src/event.cpp

  • Committer: CI bot
  • Author(s): Chris Townsend
  • Date: 2014-04-23 14:55:14 UTC
  • mfrom: (3856.1.1 compiz.commit)
  • Revision ID: ps-jenkins@lists.canonical.com-20140423145514-yj3xu8yy8anvpe05
Remove the Number of Desktops option in CCSM as this option confuses Compiz and is really no longer needed since the Horizontal/Vertical Virtual Desktop Size is what is used for determining the size. Fixes: 1289820

Show diffs side-by-side

added added

removed removed

Lines of Context:
2004
2004
                    leaveShowDesktopMode (NULL);
2005
2005
            }
2006
2006
        }
2007
 
        else if (event->xclient.message_type == Atoms::numberOfDesktops)
2008
 
        {
2009
 
            if (event->xclient.window == privateScreen.rootWindow())
2010
 
            {
2011
 
                CompOption::Value value;
2012
 
 
2013
 
                value.set ((int) event->xclient.data.l[0]);
2014
 
 
2015
 
                setOptionForPlugin ("core", "number_of_desktops", value);
2016
 
            }
2017
 
        }
2018
2007
        else if (event->xclient.message_type == Atoms::currentDesktop)
2019
2008
        {
2020
2009
            if (event->xclient.window == privateScreen.rootWindow())