Commit 3a5019b2 authored by Philip Lafleur's avatar Philip Lafleur Committed by Philip Lafleur
Browse files

Applied a patch from Robert Robert Ögren, moved here from

2004-07-11  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/widgets/gimpdevices.c (gimp_devices_check_change): Applied
	a patch from Robert Robert Ögren, moved here from
	toolbox_check_device() - Only change devices if the event came from
	a widget that accepts extension events. Fixes bug #115774.
parent 48dfe699
2004-07-11 Philip Lafleur <plafleur@cvs.gnome.org>
* app/widgets/gimpdevices.c (gimp_devices_check_change): Applied
a patch from Robert Robert Ögren, moved here from
toolbox_check_device() - Only change devices if the event came from
a widget that accepts extension events. Fixes bug #115774.
2004-07-11 Michael Natterer <mitch@gimp.org>
* app/core/gimp-utils.[ch] (gimp_parameters_append)
......
......@@ -243,6 +243,7 @@ gimp_devices_check_change (Gimp *gimp,
{
GimpDeviceManager *manager;
GdkDevice *device;
GtkWidget *source;
g_return_val_if_fail (GIMP_IS_GIMP (gimp), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
......@@ -251,6 +252,16 @@ gimp_devices_check_change (Gimp *gimp,
g_return_val_if_fail (manager != NULL, FALSE);
/* It is possible that the event was propagated from a widget that does not
want extension events and therefore always sends core pointer events.
This can cause a false switch to the core pointer device. */
source = gtk_get_event_widget (event);
if (source &&
gtk_widget_get_extension_events (source) == GDK_EXTENSION_EVENTS_NONE)
return FALSE;
switch (event->type)
{
case GDK_MOTION_NOTIFY:
......
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