diff options
author | Julien BLACHE <jblache@debian.org> | 2010-05-29 12:49:57 +0200 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:54 +0000 |
commit | 98aa79889a1cc8be7284b431372dc11b26c65e4e (patch) | |
tree | 00326799a359e1d3504df8b07f4b020255c607c9 /debian/patches/fix_preview_mouse_events.patch | |
parent | 05f0966f64f56ad3348ce8569324ee6c3e692aa8 (diff) | |
parent | ed1d7afab34d41b155ac701ee9db87c3f057b99b (diff) |
Imported Debian patch 0.997-1debian/0.997-1
Diffstat (limited to 'debian/patches/fix_preview_mouse_events.patch')
-rw-r--r-- | debian/patches/fix_preview_mouse_events.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/fix_preview_mouse_events.patch b/debian/patches/fix_preview_mouse_events.patch new file mode 100644 index 0000000..f07e8c1 --- /dev/null +++ b/debian/patches/fix_preview_mouse_events.patch @@ -0,0 +1,41 @@ +Description: Fix mouse events handling in preview window + Event handling was using key values as masks on mouse events, leading + to valid mouse events being discarded in some setups. +Bug-Debian: http://bugs.debian.org/583661 +Author: Reinhard Fössmeier <info@ais-sanmarino.org> + +Index: xsane-0.997/src/xsane-preview.c +=================================================================== +--- xsane-0.997.orig/src/xsane-preview.c 2010-05-29 12:36:28.326409629 +0200 ++++ xsane-0.997/src/xsane-preview.c 2010-05-29 12:35:47.134409038 +0200 +@@ -80,7 +80,6 @@ + #include "xsane-preview.h" + #include "xsane-preferences.h" + #include "xsane-gamma.h" +-#include <gdk/gdkkeysyms.h> + + + #ifndef PATH_MAX +@@ -3022,9 +3021,9 @@ + preview_display_color_components(p, event->motion.x, event->motion.y); + + switch (((GdkEventMotion *)event)->state & +- GDK_Num_Lock & GDK_Caps_Lock & GDK_Shift_Lock & GDK_Scroll_Lock) /* mask all Locks */ ++ (GDK_BUTTON1_MASK | GDK_BUTTON2_MASK | GDK_BUTTON3_MASK)) /* only check for mouse buttons */ + { +- case 256: /* left button */ ++ case GDK_BUTTON1_MASK: /* left button */ + + DBG(DBG_info2, "left button\n"); + +@@ -3291,8 +3290,8 @@ + } + break; + +- case 512: /* middle button */ +- case 1024: /* right button */ ++ case GDK_BUTTON2_MASK: /* middle button */ ++ case GDK_BUTTON3_MASK: /* right button */ + DBG(DBG_info2, "middle or right button\n"); + + if (p->selection_drag) |