[29365] trunk/dports/xfce/xfwm4

source_changes at macosforge.org source_changes at macosforge.org
Sat Sep 22 04:12:17 PDT 2007


Revision: 29365
          http://trac.macosforge.org/projects/macports/changeset/29365
Author:   afb at macports.org
Date:     2007-09-22 04:12:16 -0700 (Sat, 22 Sep 2007)

Log Message:
-----------
fix bug with easy_click and AltMask, that caused mouse clicks to disappear when easy_click was enabled (the default)

Modified Paths:
--------------
    trunk/dports/xfce/xfwm4/Portfile

Added Paths:
-----------
    trunk/dports/xfce/xfwm4/files/
    trunk/dports/xfce/xfwm4/files/patch-events.c

Modified: trunk/dports/xfce/xfwm4/Portfile
===================================================================
--- trunk/dports/xfce/xfwm4/Portfile	2007-09-22 10:43:20 UTC (rev 29364)
+++ trunk/dports/xfce/xfwm4/Portfile	2007-09-22 11:12:16 UTC (rev 29365)
@@ -4,6 +4,7 @@
 
 name		xfwm4
 version		4.2.4
+revision	1
 categories	xfce
 platforms	darwin
 maintainers	nomaintainer at macports.org
@@ -18,3 +19,5 @@
 configure.args	--disable-debug --enable-final  --enable-randr
 ###		--enable-startup-notification  --enable-compositor
 depends_lib	port:xfce-mcs-manager port:gtk2
+
+patchfiles	patch-events.c

Added: trunk/dports/xfce/xfwm4/files/patch-events.c
===================================================================
--- trunk/dports/xfce/xfwm4/files/patch-events.c	                        (rev 0)
+++ trunk/dports/xfce/xfwm4/files/patch-events.c	2007-09-22 11:12:16 UTC (rev 29365)
@@ -0,0 +1,23 @@
+--- src/events.c.orig	2007-01-13 22:48:07.000000000 +0100
++++ src/events.c	2007-09-22 13:10:49.000000000 +0200
+@@ -857,15 +857,17 @@
+         win = ev->subwindow;
+         screen_info = c->screen_info;
+ 
+-        if ((ev->button == Button1) && (state == AltMask) && (screen_info->params->easy_click))
++        /* On Darwin, the alt keys can be mapped over to "XK_Mode_switch" - which causes AltMask to be zero... */
++
++        if ((ev->button == Button1) && (state == AltMask && AltMask != 0) && (screen_info->params->easy_click))
+         {
+             button1Action (c, ev);
+         }
+-        else if ((ev->button == Button2) && (state == AltMask) && (screen_info->params->easy_click))
++        else if ((ev->button == Button2) && (state == AltMask && AltMask != 0) && (screen_info->params->easy_click))
+         {
+             clientLower (c);
+         }
+-        else if ((ev->button == Button3) && (state == AltMask) && (screen_info->params->easy_click))
++        else if ((ev->button == Button3) && (state == AltMask && AltMask != 0) && (screen_info->params->easy_click))
+         {
+             if ((ev->x < c->width / 2) && (ev->y < c->height / 2))
+             {


Property changes on: trunk/dports/xfce/xfwm4/files/patch-events.c
___________________________________________________________________
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070922/2fdfbb84/attachment.html


More information about the macports-changes mailing list