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

Unified Diff: ui/aura/root_window_host_linux.cc

Issue 10377161: aura-x11: Install the dispatcher as a message-pump observer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « ui/aura/dispatcher_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host_linux.cc
diff --git a/ui/aura/root_window_host_linux.cc b/ui/aura/root_window_host_linux.cc
index 4f42775ff14aa9e8c40e44b6a4b72b2f86672dab..dcad33d3dd094e60aa99395dd26cae581da857fd 100644
--- a/ui/aura/root_window_host_linux.cc
+++ b/ui/aura/root_window_host_linux.cc
@@ -47,7 +47,7 @@ const char kRootWindowHostLinuxKey[] = "__AURA_ROOT_WINDOW_HOST_LINUX__";
// The events reported for slave devices can have incorrect information for some
// fields. This utility function is used to check for such inconsistencies.
void CheckXEventForConsistency(XEvent* xevent) {
-#if defined(USE_XI2_MT)
+#if defined(USE_XI2_MT) && !defined(NDEBUG)
sadrul 2012/05/16 17:07:01 I was tempted to just remove this check since we h
static bool expect_master_event = false;
static XIDeviceEvent slave_event;
static gfx::Point slave_location;
@@ -92,7 +92,7 @@ void CheckXEventForConsistency(XEvent* xevent) {
CHECK_EQ(slave_event.mods.locked, xievent->mods.locked);
CHECK_EQ(slave_event.mods.effective, xievent->mods.effective);
}
-#endif // defined(USE_XI2_MT)
+#endif // defined(USE_XI2_MT) && !defined(NDEBUG)
}
// Returns X font cursor shape from an Aura cursor.
« no previous file with comments | « ui/aura/dispatcher_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698