summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2007-06-19 04:53:44 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2007-06-19 04:53:44 +0000
commit0a9efdebd9cbd774acc4ec7f3fa1db46455969b7 (patch)
tree01cddb14054e146ef8d25f07bb87306d222bc399 /x11-wm
parentUpdate to 2.18.5. (diff)
add an optional patch which reverses the mouse workspace changing
direction. PR: ports/113269 Submitted by: ehaupt
Notes
Notes: svn path=/head/; revision=193842
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/xfce4-wm/Makefile9
-rw-r--r--x11-wm/xfce4-wm/files/extrapatch-src__events.c16
-rw-r--r--x11-wm/xfce4-wm/pkg-plist1
3 files changed, 23 insertions, 3 deletions
diff --git a/x11-wm/xfce4-wm/Makefile b/x11-wm/xfce4-wm/Makefile
index d1d3b482d546..9a867af23636 100644
--- a/x11-wm/xfce4-wm/Makefile
+++ b/x11-wm/xfce4-wm/Makefile
@@ -18,7 +18,7 @@ COMMENT= XFce 4 window manager
CONFIGURE_ARGS= --enable-xinerama
GNU_CONFIGURE= yes
-INSTALLS_ICONS= yes
+INSTALLS_ICONS= yes
USE_BZIP2= yes
USE_GETTEXT= yes
USE_GMAKE= yes
@@ -29,7 +29,8 @@ USE_XFCE= configenv libmcs libutil libgui mcsmanager panel
USE_XLIB= yes
OPTIONS= COMPOSITE "Support the experimental X11 Composite extension" on \
- STARTUP "Enable startup notification support" on
+ STARTUP "Enable startup notification support" on \
+ REVMOUSE "Reverse mouse workspace changing direction" off
.include <bsd.port.pre.mk>
@@ -46,6 +47,10 @@ CONFIGURE_ARGS+=--enable-startup-notification
CONFIGURE_ARGS+=--disable-startup-notification
.endif
+.if defined(WITH_REVMOUSE)
+EXTRA_PATCHES= ${FILESDIR}/extrapatch-src__events.c
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|\(#define ShapeInput 2\);|\1|' \
${WRKSRC}/src/frame.c
diff --git a/x11-wm/xfce4-wm/files/extrapatch-src__events.c b/x11-wm/xfce4-wm/files/extrapatch-src__events.c
new file mode 100644
index 000000000000..af5798ac41e4
--- /dev/null
+++ b/x11-wm/xfce4-wm/files/extrapatch-src__events.c
@@ -0,0 +1,16 @@
+--- src/events.c.orig Mon Apr 2 21:48:20 2007
++++ src/events.c Tue Jun 19 06:49:58 2007
+@@ -860,11 +860,11 @@
+
+ if (ev->button == Button4)
+ {
+- workspaceSwitch (screen_info, screen_info->current_ws - 1, NULL, TRUE, ev->time);
++ workspaceSwitch (screen_info, screen_info->current_ws + 1, NULL, TRUE, ev->time);
+ }
+ else if (ev->button == Button5)
+ {
+- workspaceSwitch (screen_info, screen_info->current_ws + 1, NULL, TRUE, ev->time);
++ workspaceSwitch (screen_info, screen_info->current_ws - 1, NULL, TRUE, ev->time);
+ }
+ }
+
diff --git a/x11-wm/xfce4-wm/pkg-plist b/x11-wm/xfce4-wm/pkg-plist
index b73db72bf02c..d53111852df4 100644
--- a/x11-wm/xfce4-wm/pkg-plist
+++ b/x11-wm/xfce4-wm/pkg-plist
@@ -1320,4 +1320,3 @@ share/xfwm4/defaults
@dirrmtry share/icons/hicolor/scalable/apps
@dirrmtry share/icons/hicolor/scalable
@dirrmtry share/themes
-