Bug 771444: Tablet stylus misbehaves when crossing...

the edge of a dock in multi-window-mode

when the pointer is grabbed do not process a
motion-notify-event having the wrong 'device' member.

This avoids a harmful device change.
This commit is contained in:
Massimo Valentini 2016-09-22 18:18:40 +02:00
parent 472608fe75
commit 5037ff35ca

View file

@ -338,6 +338,19 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
GIMP_LOG (TOOL_EVENTS, "event (display %p): %s",
display, gimp_print_event (event));
/* See bug 771444 */
if (shell->pointer_grabbed &&
event->type == GDK_MOTION_NOTIFY)
{
GimpDeviceManager *manager = gimp_devices_get_manager (gimp);
GimpDeviceInfo *info;
info = gimp_device_manager_get_current_device (manager);
if (info->device != event->motion.device)
return FALSE;
}
/* Find out what device the event occurred upon */
if (! gimp->busy &&
! shell->inferior_ignore_mode &&