summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/views/widget/desktop_aura/x11_window_event_filter.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/views/widget/desktop_aura/x11_window_event_filter.cc b/ui/views/widget/desktop_aura/x11_window_event_filter.cc
index 2c490f3..45418fb 100644
--- a/ui/views/widget/desktop_aura/x11_window_event_filter.cc
+++ b/ui/views/widget/desktop_aura/x11_window_event_filter.cc
@@ -98,6 +98,9 @@ void X11WindowEventFilter::OnMouseEvent(ui::MouseEvent* event) {
return;
aura::Window* target = static_cast<aura::Window*>(event->target());
+ if (!target->delegate())
+ return;
+
int component =
target->delegate()->GetNonClientComponent(event->location());
if (component == HTCLIENT)