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:
parent
472608fe75
commit
5037ff35ca
1 changed files with 13 additions and 0 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue