~robert-ancell/unity/ubuntu-session

« back to all changes in this revision

Viewing changes to decorations/DecorationsManager.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:
167
167
    case ButtonRelease:
168
168
      if (HandleFrameEvent(event))
169
169
        return true;
 
170
    case FocusOut:
 
171
      if (event->xfocus.mode == NotifyGrab && !last_mouse_owner_.expired())
 
172
      {
 
173
        last_mouse_owner_.lock()->UngrabPointer();
 
174
        last_mouse_owner_.reset();
 
175
      }
170
176
      break;
171
177
  }
172
178