diff options
Diffstat (limited to 'views/widget/widget_gtk.cc')
-rw-r--r-- | views/widget/widget_gtk.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index 11af0a1..4bde019 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -1088,7 +1088,8 @@ bool WidgetGtk::ProcessMousePressed(GdkEventButton* event) { // An event may come from a contained widget which has its own gdk window. // Translate it to the widget's coordinates. - int x, y; + int x = 0; + int y = 0; GetContainedWidgetEventCoordinates(event, &x, &y); last_mouse_event_was_move_ = false; MouseEvent mouse_pressed(Event::ET_MOUSE_PRESSED, x, y, |