~mial/ubuntu/oneiric/unity/bug-791810

« back to all changes in this revision

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

  • Committer: Marco Trevisan (Treviño)
  • Date: 2011-09-22 18:47:56 UTC
  • mto: (1631.1.8 fixes)
  • mto: This revision was merged to the branch mainline in revision 1642.
  • Revision ID: mail@3v1n0.net-20110922184756-sjag3yjhiq8gvf12
PanelMenuView: Show the buttons when pressing Alt on maximized windows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
352
352
  nux::ColorLayer layer(nux::Color(0x00000000), true, rop);
353
353
  gPainter.PushDrawLayer(GfxContext, GetGeometry(), &layer);
354
354
 
355
 
  if (_is_own_window || !_we_control_active || (_is_maximized && (_is_inside || _show_now_activated)))
 
355
  if (_is_own_window || !_we_control_active ||
 
356
      (_is_maximized && ((_is_inside || _show_now_activated) ||
 
357
                         (_fading_menus.GetOpacity() > 0 && _fading_buttons.GetOpacity() > 0))))
356
358
  {
357
359
 
358
360
  }
479
481
    _fading_menus.FadeOut(30);
480
482
  }
481
483
 
482
 
  if ((!_is_own_window && _we_control_active && _is_maximized && _is_inside) ||
 
484
  if ((!_is_own_window && _we_control_active && _is_maximized && (_is_inside || _show_now_activated)) ||
483
485
      _places_showing)
484
486
  {
485
487
    _window_buttons->ProcessDraw(GfxContext, true);