Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2007 23:41:09 +0200 (CEST)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/113269: [patch] x11-wm/xfce4-wm - Add an optional patch to reverse the mouse workspace changing direction
Message-ID:  <200706022141.l52Lf9QZ059870@milkyway.critical.ch>
Resent-Message-ID: <200706022210.l52MA5Nh068241@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         113269
>Category:       ports
>Synopsis:       [patch] x11-wm/xfce4-wm - Add an optional patch to reverse the mouse workspace changing direction
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 02 22:10:05 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Emanuel Haupt
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD milkyway.critical.ch 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
This implements an optional patch to reverse the mouse workspace changing
direction. This option is not activated by default. The request for such a
config option has been sent to the authors.

Also remove blank line at the end of pkg-plist and replace spaces with a tab in
the Makefile.
>How-To-Repeat:
	
>Fix:

	

--- xfce4-wm.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/x11-wm/xfce4-wm/Makefile,v
retrieving revision 1.40
diff -u -r1.40 Makefile
--- Makefile	19 May 2007 20:32:56 -0000	1.40
+++ Makefile	2 Jun 2007 21:32:46 -0000
@@ -18,7 +18,7 @@
 
 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_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+=--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
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/x11-wm/xfce4-wm/pkg-plist,v
retrieving revision 1.17
diff -u -r1.17 pkg-plist
--- pkg-plist	22 Jan 2007 16:45:04 -0000	1.17
+++ pkg-plist	2 Jun 2007 21:32:46 -0000
@@ -1320,4 +1320,3 @@
 @dirrmtry share/icons/hicolor/scalable/apps
 @dirrmtry share/icons/hicolor/scalable
 @dirrmtry share/themes
-
Index: files/extrapatch-src__events.c
===================================================================
RCS file: files/extrapatch-src__events.c
diff -N files/extrapatch-src__events.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/extrapatch-src__events.c	2 Jun 2007 21:32:46 -0000
@@ -0,0 +1,16 @@
+--- ./src/events.c.orig	Mon Apr  2 21:48:20 2007
++++ ./src/events.c	Sat Jun  2 23:02: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);
+     }
+ }
+ 
--- xfce4-wm.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706022141.l52Lf9QZ059870>