Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: ui/views/widget/desktop_root_window_host_linux.cc

Issue 11189148: desktop linux aura: Fix event/capture focus after dragging a window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows compile. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/desktop_capture_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_root_window_host_linux.cc
diff --git a/ui/views/widget/desktop_root_window_host_linux.cc b/ui/views/widget/desktop_root_window_host_linux.cc
index 8b8ca90f9ba4aad4897f1809e0adeec41bef8b8b..c135f6a3e9b580c04cb3c6e6c9a7570b2162a793 100644
--- a/ui/views/widget/desktop_root_window_host_linux.cc
+++ b/ui/views/widget/desktop_root_window_host_linux.cc
@@ -896,8 +896,12 @@ bool DesktopRootWindowHostLinux::Dispatch(const base::NativeEvent& event) {
break;
}
case FocusOut:
- if (xev->xfocus.mode != NotifyGrab)
- root_window_host_delegate_->OnHostLostCapture();
+ if (xev->xfocus.mode != NotifyGrab) {
+ ReleaseCapture();
+ root_window_host_delegate_->OnHostLostWindowCapture();
+ } else {
+ root_window_host_delegate_->OnHostLostMouseGrab();
+ }
break;
case ConfigureNotify: {
DCHECK_EQ(xwindow_, xev->xconfigure.window);
« no previous file with comments | « ui/views/widget/desktop_capture_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698