Re: [wmii] wmii-3 on MacOS X?

From: Kris Maglione <bsdaemon_AT_comcast.net>
Date: Mon, 5 Jun 2006 00:07:06 -0400

On Sun, Jun 04, 2006 at 05:49:17PM -0400, Geoffrey Alan Washburn wrote:
> Yes, I'm well aware of that, but it isn't the behavior I'm looking
>for. Is there anyway I can get the correct behavior? Is there perhaps
>something exposed by 9P that I can set?
No, there isn't. You can, however, most likely, achieve the desired behavior
by applying a minor patch to cmd/wm/wm.c. Since I know virtually nothing about
X11 on OSX, I don't know how to find the height of the top bar, so you'll have
to enter it manually (or I'll go digging into Ion later, but no promises). As
long as wmii checks rect.y everywhere, rather than just assuming it's 0 (no
promises there either), this will work.

Here is a diff from wm.c; the lines will probably be slightly different, since
I'm using 4-current:

--- wm.c Wed May 31 13:50:38 2006
+++ - Mon Jun 5 00:05:58 2006
@@ -149,9 +149,10 @@
         xorgc = XCreateGC(dpy, root, GCForeground | GCGraphicsExposures |
                                                 GCFunction | GCSubwindowMode | GCPlaneMask, &gcv);
 
- rect.x = rect.y = 0;
+ rect.y = <enter offset here>;
+ rect.x = 0;
         rect.width = DisplayWidth(dpy, screen);
- rect.height = DisplayHeight(dpy, screen);
+ rect.height = DisplayHeight(dpy, screen) - rect.y;
         def.snap = rect.height / 63;
 }
 

-- 
Kris Maglione
Magellan was the first strait man.
Received on Mon Jun 05 2006 - 06:07:40 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:07:50 UTC