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

Unified Diff: base/message_pump_glib_x.cc

Issue 7031057: X message pump: Remove the GDK window event filter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary comment Created 9 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_pump_glib_x.cc
diff --git a/base/message_pump_glib_x.cc b/base/message_pump_glib_x.cc
index c694114d2933b97253723f4921ff5919a2f56fd1..d45ce7e7c878efd50b9ed11499c2fb50014cf1e0 100644
--- a/base/message_pump_glib_x.cc
+++ b/base/message_pump_glib_x.cc
@@ -43,6 +43,11 @@ MessagePumpGlibX::MessagePumpGlibX() : base::MessagePumpForUI(),
}
MessagePumpGlibX::~MessagePumpGlibX() {
+ gdk_window_remove_filter(NULL, &GdkEventFilter, this);
+
+ // It is not necessary to reset the GDK event handler using
+ // gdk_event_handler_set since it's done in the destructor for
+ // MessagePumpForUI.
}
bool MessagePumpGlibX::ShouldCaptureXEvent(XEvent* xev) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698