~unity-team/unity/4.0

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/PluginAdapter.cpp

MergeĀ lp:~unity-team/unity/unity.minimized_windows_switcher

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
PluginAdapter::PluginAdapter(CompScreen* screen) :
58
58
  m_Screen(screen),
59
59
  m_ExpoActionList(0),
60
 
  m_ScaleActionList(0)
 
60
  m_ScaleActionList(0),
 
61
  _in_show_desktop (false)
61
62
{
62
63
  _spread_state = false;
63
64
  _expo_state = false;
507
508
void
508
509
PluginAdapter::ShowDesktop()
509
510
{
510
 
  m_Screen->enterShowDesktopMode();
 
511
  if (_in_show_desktop)
 
512
    m_Screen->leaveShowDesktopMode(NULL);
 
513
  else
 
514
    m_Screen->enterShowDesktopMode();
 
515
}
 
516
 
 
517
void
 
518
PluginAdapter::OnShowDesktop()
 
519
{
 
520
  _in_show_desktop = true;
 
521
}
 
522
 
 
523
void
 
524
PluginAdapter::OnLeaveDesktop()
 
525
{
 
526
  _in_show_desktop = false;
511
527
}
512
528
 
513
529
nux::Geometry