aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/xfce4-wm
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2007-06-19 12:53:44 +0800
committeroliver <oliver@FreeBSD.org>2007-06-19 12:53:44 +0800
commit2729a2e2ca0b95bdd16647ad157c9b74b830c0f6 (patch)
tree9d5b509cbd9d5ed7c262330a8369c8e40377e9dd /x11-wm/xfce4-wm
parent2ce2091fb335e513ebb4d6f74a96acb83d7c68e4 (diff)
downloadfreebsd-ports-gnome-2729a2e2ca0b95bdd16647ad157c9b74b830c0f6.tar.gz
freebsd-ports-gnome-2729a2e2ca0b95bdd16647ad157c9b74b830c0f6.tar.zst
freebsd-ports-gnome-2729a2e2ca0b95bdd16647ad157c9b74b830c0f6.zip
add an optional patch which reverses the mouse workspace changing
direction. PR: ports/113269 Submitted by: ehaupt
Diffstat (limited to 'x11-wm/xfce4-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
-