ports/117042: [update] x11-wm/awesome bugfixes back-ported from git HEAD

Nikos Ntarmos ntarmos at ceid.upatras.gr
Tue Oct 9 09:20:02 UTC 2007


>Number:         117042
>Category:       ports
>Synopsis:       [update] x11-wm/awesome bugfixes back-ported from git HEAD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 09 09:20:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Nikos Ntarmos
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
NetCInS Lab., C.E.I.D., U. of Patras, Greece
>Environment:
System: FreeBSD ace.netcins.ceid.upatras.gr 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Fri Jul 13 06:50:30 EEST 2007 ntarmos at ace.b020.ceid.upatras.gr:/opt/obj/opt/src/sys/ACE i386


	
>Description:
Backport of two bug fixes from the git repository of x11-wm/awesome,
plus a simpler+cleaner version of one of the extra patches.
	
>How-To-Repeat:
	
>Fix:

	

--- patch-awesome begins here ---
--- Makefile
+++ Makefile
@@ -7,6 +7,7 @@
 
 PORTNAME=	awesome
 PORTVERSION=	1.3
+PORTREVISION=	1
 CATEGORIES=	x11-wm
 MASTER_SITES=	http://awesome.naquadah.org/download/
 
--- files/extrapatch-warp
+++ files/extrapatch-warp
@@ -1,25 +1,11 @@
 --- layout.c.orig	2007-09-26 13:18:33.000000000 +0300
 +++ layout.c	2007-09-26 13:20:48.000000000 +0300
-@@ -114,6 +114,22 @@
+@@ -114,6 +114,8 @@
      Client *c;
      XEvent ev;
      XWindowChanges wc;
-+	 Window dummy, root;
-+	 int wex, wey, ex, ey, i;
-+	 unsigned int dmask;
-+
-+	 if(sel) {
-+		 ScreenInfo *si = get_screen_info(disp, awesomeconf->screen, &awesomeconf->statusbar);
-+		 root = RootWindow(disp, awesomeconf->screen);
-+		 XQueryPointer(disp, sel->win, &dummy, &dummy, &i, &i, &wex, &wey, &dmask);
-+		 XTranslateCoordinates(disp, sel->win, root, wex, wey, &ex, &ey, &dummy);
-+		 /* I'm so sorry for this... Shame on me... */
-+		 if(ex > si[awesomeconf->screen].x_org && ex < si[awesomeconf->screen].width && ey > si[awesomeconf->screen].y_org && ey < si[awesomeconf->screen].height) {
-+			 XSelectInput(disp, root, SubstructureRedirectMask & EnterWindowMask);
++	 if(sel)
 +			 XWarpPointer(disp, None, sel->win, 0, 0, 0, 0, sel->w / 2, sel->h / 2);
-+			 XSelectInput(disp, root, SubstructureRedirectMask);
-+		 }
-+	 }
  
      drawstatusbar(disp, awesomeconf->screen, drawcontext, awesomeconf);
      if(!sel)
--- /dev/null
+++ files/patch-config.c
@@ -0,0 +1,11 @@
+--- config.c
++++ config.c
+@@ -400,7 +400,7 @@ parse_config(Display * disp, int scr, DC * drawcontext, const char *confpatharg,
+     awesomeconf->mwfact = f ? f : 0.6;
+ 
+     /* resize_hints */
+-    awesomeconf->resize_hints = config_lookup_float(&awesomelibconf, "awesome.resize_hints");
++    awesomeconf->resize_hints = config_lookup_bool(&awesomelibconf, "awesome.resize_hints");
+ 
+     /* colors */
+     tmp = config_lookup_string(&awesomelibconf, "awesome.normal_border_color");
--- /dev/null
+++ files/patch-statusbar.c
@@ -0,0 +1,11 @@
+--- statusbar.c
++++ statusbar.c
+@@ -166,7 +166,7 @@ uicb_togglebar(Display *disp,
+                const char *arg __attribute__ ((unused)))
+ {
+     if(awesomeconf->statusbar.position == BarOff)
+-        awesomeconf->statusbar.position = (awesomeconf->statusbar.position == BarOff) ? BarTop : awesomeconf->statusbar_default_position;
++        awesomeconf->statusbar.position = (awesomeconf->statusbar_default_position == BarOff) ? BarTop : awesomeconf->statusbar_default_position;
+     else
+         awesomeconf->statusbar.position = BarOff;
+     updatebarpos(disp, awesomeconf->statusbar);
--- patch-awesome ends here ---


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



More information about the freebsd-ports-bugs mailing list