Kris Maglione wrote:
> 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).
If ion contains specialized code for MacOS X I can probably figure
it out.
> As long as wmii checks rect.y everywhere, rather than just assuming
> it's 0 (no promises there either), this will work.
Okay, I'll look into this. Would there be any reason not to make
rect.x,rect.y,rect.width, and rect.height available via 9P in wmii-4?
That way I can confine whatever modifications are necessary to the tools
that I write. Though I have to admit that offhand I can't think of too
many other cases where one would want to write these values, but there
are probably a number of useful reasons for being able to read them
interactively.
>
> 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;
> }
>
>
Thanks.
-- [Geoff Washburn|geoffw@cis.upenn.edu|http://www.cis.upenn.edu/~geoffw/]Received on Mon Jun 05 2006 - 16:49:32 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:07:51 UTC