~robert-ancell/unity/ubuntu-session

« back to all changes in this revision

Viewing changes to panel/PanelView.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:
635
635
void PanelView::OnEntryShowMenu(std::string const& entry_id, unsigned xid,
636
636
                                int x, int y, unsigned button)
637
637
{
638
 
  Display* d = nux::GetGraphicsDisplay()->GetX11Display();
639
 
  XUngrabPointer(d, CurrentTime);
640
 
  XFlush(d);
641
 
 
642
 
  // --------------------------------------------------------------------------
643
 
  // FIXME: This is a workaround until the non-paired events issue is fixed in
644
 
  // nux
645
 
  XButtonEvent ev =
646
 
  {
647
 
    ButtonRelease,
648
 
    0,
649
 
    False,
650
 
    d,
651
 
    0,
652
 
    0,
653
 
    0,
654
 
    CurrentTime,
655
 
    x, y,
656
 
    x, y,
657
 
    0,
658
 
    Button1,
659
 
    True
660
 
  };
661
 
  XEvent* e = (XEvent*)&ev;
662
 
  nux::GetWindowThread()->ProcessForeignEvent(e, NULL);
663
 
  // --------------------------------------------------------------------------
 
638
  // This is ugly... But Nux fault!
 
639
  WindowManager::Default().UnGrabMousePointer(CurrentTime, button, x, y);
664
640
}
665
641
 
666
642
bool PanelView::ActivateFirstSensitive()