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

Unified Diff: views/focus/accelerator_handler_touch.cc

Issue 7019007: Update the X11 keycodes when keys are remapped. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: views/focus/accelerator_handler_touch.cc
diff --git a/views/focus/accelerator_handler_touch.cc b/views/focus/accelerator_handler_touch.cc
index 032b29d95baa5009e67502c1c3b5cfea7cc668bb..256723adcf8ce29fecbcb0b39b08725379b03442 100644
--- a/views/focus/accelerator_handler_touch.cc
+++ b/views/focus/accelerator_handler_touch.cc
@@ -130,7 +130,7 @@ bool DispatchXEvent(XEvent* xev) {
#endif
GdkWindow* gwind = gdk_window_lookup_for_display(gdisp, xwindow);
- Widget* widget = FindWidgetForGdkWindow(gwind);
+ Widget* widget = gwind ? FindWidgetForGdkWindow(gwind) : NULL;
Daniel Erat 2011/05/17 18:33:17 Mention this in the CL description too, assuming t
sadrul 2011/05/17 19:39:55 Nope. This is for this CL. Until now, we have only
if (widget) {
Event::FromNativeEvent2 from_native;
switch (xev->type) {

Powered by Google App Engine
This is Rietveld 408576698