aboutsummaryrefslogtreecommitdiff
path: root/packages/patches
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-09-24 17:15:39 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-09-24 17:15:39 +0000
commit3d70cf85a217644ea0b8e629290431e84c923247 (patch)
treec8623254ef187e4f8c80be0d46578a8fab3770d3 /packages/patches
parent512a4a9587297d50cf35d1375a81d4355a26eb45 (diff)
remove doubleclick as rightclick on Mac OS X since the OS provides a standard method to rightclick with one-button mice
svn path=/trunk/; revision=6010
Diffstat (limited to 'packages/patches')
-rw-r--r--packages/patches/remove_doubleclick_as_rightclick-0.39.2.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/patches/remove_doubleclick_as_rightclick-0.39.2.patch b/packages/patches/remove_doubleclick_as_rightclick-0.39.2.patch
new file mode 100644
index 00000000..c832a3e3
--- /dev/null
+++ b/packages/patches/remove_doubleclick_as_rightclick-0.39.2.patch
@@ -0,0 +1,32 @@
+Index: g_editor.c
+===================================================================
+RCS file: /cvsroot/pure-data/pd/src/g_editor.c,v
+retrieving revision 1.13
+diff -u -w -r1.13 g_editor.c
+--- g_editor.c 15 Sep 2005 03:17:27 -0000 1.13
++++ g_editor.c 24 Sep 2006 17:12:48 -0000
+@@ -1027,12 +1027,6 @@
+ #define ALTMOD 4
+ #define RIGHTCLICK 8
+
+-/* on one-button-mouse machines, you can use double click to
+- mean right click (which gets the popup menu.) Do this for Mac. */
+-#ifdef MACOSX
+-#define SIMULATERIGHTCLICK
+-#endif
+-
+ static double canvas_upclicktime;
+ static int canvas_upx, canvas_upy;
+ #define DCLICKINTERVAL 0.25
+@@ -1067,11 +1061,7 @@
+
+ if (doit && !runmode && xpos == canvas_upx && ypos == canvas_upy &&
+ sys_getrealtime() - canvas_upclicktime < DCLICKINTERVAL)
+-#ifdef SIMULATERIGHTCLICK
+- rightclick = 1;
+-#else
+ doublemod = 1;
+-#endif
+ x->gl_editor->e_lastmoved = 0;
+ if (doit)
+ {