diff options
Diffstat (limited to 'tests/testwidgetfocus.c')
-rw-r--r-- | tests/testwidgetfocus.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/testwidgetfocus.c b/tests/testwidgetfocus.c index 97e3074ea0..3524bb990e 100644 --- a/tests/testwidgetfocus.c +++ b/tests/testwidgetfocus.c @@ -203,9 +203,12 @@ gtk_focus_widget_motion_notify_event (GtkWidget *widget, GdkEventMotion *event) { GtkFocusWidget *self = GTK_FOCUS_WIDGET (widget); + gdouble x, y; - self->mouse_x = event->x; - self->mouse_y = event->y; + gdk_event_get_coords ((GdkEvent *)event, &x, &y); + + self->mouse_x = x; + self->mouse_y = y; gtk_widget_queue_draw (widget); |