forked from AuroraMiddleware/gtk
Better fix for keynav dnd
With proper rounding, we can go back to a 'small step' of 1.
This commit is contained in:
parent
7e0a30b752
commit
d77dcfb9b2
@ -4170,7 +4170,9 @@ gtk_drag_motion_cb (GtkWidget *widget,
|
||||
else
|
||||
screen = gdk_event_get_screen ((GdkEvent *)event);
|
||||
|
||||
gtk_drag_update (info, screen, event->x_root, event->y_root, (GdkEvent *) event);
|
||||
x_root = (gint)(event->x_root + 0.5);
|
||||
y_root = (gint)(event->y_root + 0.5);
|
||||
gtk_drag_update (info, screen, x_root, y_root, (GdkEvent *) event);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@ -4184,7 +4186,7 @@ gtk_drag_motion_cb (GtkWidget *widget,
|
||||
*************************************************************/
|
||||
|
||||
#define BIG_STEP 20
|
||||
#define SMALL_STEP 2
|
||||
#define SMALL_STEP 1
|
||||
|
||||
static gboolean
|
||||
gtk_drag_key_cb (GtkWidget *widget,
|
||||
|
Loading…
Reference in New Issue
Block a user