Chromium Code Reviews| 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) { |