~attente/unity/hud-controller-gvariant-type-error

« back to all changes in this revision

Viewing changes to panel/PanelMenuView.cpp

  • Committer: Brandon Schaefer
  • Date: 2013-01-28 23:57:38 UTC
  • mto: This revision was merged to the branch mainline in revision 3081.
  • Revision ID: brandon.schaefer@canonical.com-20130128235738-4wonmexgt51x2jp6
* The main reason, is the DashView has to take up the PanelHeight, so when the
  launcher icons are resized, part of the window buttons get cut off from mouse events.
* Created a class OverlayWindowButtons which will sit in the DashView/HudView
  to handle mouse events for the window buttons.
* TODO: We need to refactor the PanelMenuView to extract window button logic
  (dealing with overlays).

Show diffs side-by-side

added added

removed removed

Lines of Context:
356
356
  WindowManager& wm = WindowManager::Default();
357
357
  bool screen_grabbed = (wm.IsExpoActive() || wm.IsScaleActive());
358
358
 
 
359
  // TODO: We need to refactor this code to extract the window button logic
359
360
  if (overlay_showing_)
360
 
    return true;
 
361
    return false;
361
362
 
362
363
  if (we_control_active_ && is_maximized_ && !screen_grabbed &&
363
364
      !launcher_keynav_ && !switcher_showing_)