Index: chrome/browser/ui/libgtkui/select_file_dialog_impl_gtk.cc |
diff --git a/chrome/browser/ui/libgtkui/select_file_dialog_impl_gtk.cc b/chrome/browser/ui/libgtkui/select_file_dialog_impl_gtk.cc |
index 0671241d1fc11bc8a655b2e8f4016934440832e1..e0fcefe41d1ed70c17fc6163e33a347fc9161143 100644 |
--- a/chrome/browser/ui/libgtkui/select_file_dialog_impl_gtk.cc |
+++ b/chrome/browser/ui/libgtkui/select_file_dialog_impl_gtk.cc |
@@ -175,8 +175,7 @@ void SelectFileDialogImplGTK::SelectFileImpl( |
std::unique_ptr<base::Closure> callback = |
views::DesktopWindowTreeHostX11::GetHostForXID( |
host->GetAcceleratedWidget()) |
- ->DisableEventListening( |
- GDK_WINDOW_XID(gtk_widget_get_window(dialog))); |
+ ->DisableEventListening(); |
// OnFilePickerDestroy() is called when |dialog| destroyed, which allows |
// to invoke the callback function to re-enable event handling on the |
// owning window. |