diff options
Diffstat (limited to 'views/focus/accelerator_handler_touch.cc')
-rw-r--r-- | views/focus/accelerator_handler_touch.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/focus/accelerator_handler_touch.cc b/views/focus/accelerator_handler_touch.cc index 389fe7d..d4b072a 100644 --- a/views/focus/accelerator_handler_touch.cc +++ b/views/focus/accelerator_handler_touch.cc @@ -31,13 +31,13 @@ RootView* FindRootViewForGdkWindow(GdkWindow* gdk_window) { DLOG(WARNING) << "no GtkWidget found for that GdkWindow"; return NULL; } + WidgetGtk* widget_gtk = WidgetGtk::GetViewForNative(gtk_widget); - NativeWidget* widget = NativeWidget::GetNativeWidgetForNativeView(gtk_widget); - if (!widget) { + if (!widget_gtk) { DLOG(WARNING) << "no WidgetGtk found for that GtkWidget"; return NULL; } - return widget->GetWidget()->GetRootView(); + return widget_gtk->GetRootView(); } #if defined(HAVE_XINPUT2) |