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. |