Commit faf43e2e authored by Martin Renold's avatar Martin Renold Committed by Benjamin Otte

tests: Make testinput example not compress events

parent f8ba2587
......@@ -256,8 +256,6 @@ motion_notify_event (GtkWidget *widget, GdkEventMotion *event)
motion_time = event->time;
}
if (event->is_hint)
gdk_device_get_state (event->device, event->window, NULL, NULL);
print_axes (event->device, event->axes);
update_cursor (widget, event->x, event->y);
......@@ -299,8 +297,8 @@ main (int argc, char *argv[])
GtkWidget *window;
GtkWidget *drawing_area;
GtkWidget *vbox;
GtkWidget *button;
GdkWindow *gdk_win;
gtk_init (&argc, &argv);
......@@ -351,7 +349,6 @@ main (int argc, char *argv[])
GDK_BUTTON_PRESS_MASK |
GDK_KEY_PRESS_MASK |
GDK_POINTER_MOTION_MASK |
GDK_POINTER_MOTION_HINT_MASK |
GDK_PROXIMITY_OUT_MASK;
gtk_widget_set_events (drawing_area, event_mask);
......@@ -383,6 +380,10 @@ main (int argc, char *argv[])
gtk_widget_show (window);
/* request all motion events */
gdk_win = gtk_widget_get_window (drawing_area);
gdk_window_set_event_compression (gdk_win, FALSE);
gtk_main ();
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment