Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index d1695c136ca7b252851725800e2da4193303303d..f5c1bc370d633cb158a3e9f3614b898e87adcfb5 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -165,6 +165,11 @@ DesktopWindowTreeHostX11* DesktopWindowTreeHostX11::GetHostForXID(XID xid) { |
} |
// static |
+bool DesktopWindowTreeHostX11::AnyHostHasCapture() { |
+ return (!!g_current_capture); |
+} |
+ |
+// static |
std::vector<aura::Window*> DesktopWindowTreeHostX11::GetAllOpenWindows() { |
std::vector<aura::Window*> windows(open_windows().size()); |
std::transform(open_windows().begin(), |