~robert-ancell/unity/ubuntu-session

« back to all changes in this revision

Viewing changes to panel/PanelTitlebarGrabAreaView.cpp

  • Committer: CI bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2014-02-14 23:05:22 UTC
  • mfrom: (3656.1.9 decorations-menu)
  • Revision ID: ps-jenkins@lists.canonical.com-20140214230522-piumdig8mkip2h5j
{DecorationsGrabEdge, PanelTitlebarGrabAreaView}: show the WindowAction menu on right-click Fixes: 1098419, 1280042

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
{
92
92
  mouse_down_button_ = nux::GetEventButton(button_flags);
93
93
 
94
 
  if (mouse_down_button_ == 2)
95
 
  {
96
 
    lower_request.emit(x, y);
97
 
  }
98
 
  else if (mouse_down_button_ == 1)
 
94
  if (mouse_down_button_ == 1)
99
95
  {
100
96
    mouse_down_point_.x = x;
101
97
    mouse_down_point_.y = y;
114
110
      return false;
115
111
    });
116
112
  }
 
113
  else if (mouse_down_button_ == 2)
 
114
  {
 
115
    lower_request.emit(x, y);
 
116
  }
 
117
  else if (mouse_down_button_ == 3)
 
118
  {
 
119
    menu_request.emit(x, y);
 
120
  }
117
121
}
118
122
 
119
123
void PanelTitlebarGrabArea::OnMouseUp(int x, int y, unsigned long button_flags, unsigned long)