Quoting Scott Brumbaugh ([EMAIL PROTECTED]): > Hi, > > A couple months ago I submitted a patch to XDirectFB showing how to > change a top-level X window's transparency through the X11 protocol. > I called this patch the X-Transparency protocol extension. > > I have now gotten around to integrating this X Extension into an X11 > window manager. I choose sawfish because it is easily scriptable with > a dialect of lisp and it seems to be pretty popular with XDirectFB > users. Again, like the original protocol extension patch this sawfish > patch is a simple 'proof of concept'.
Cool, I will try it as soon as possible. > I have created wrappers around the xlib X-Transparency get/set calls > that allow them to be called from a lisp-like script executed by the > sawfish window manager. I have also created a sample .sawfishrc > startup script that will allow top-level window transparency to be > varied by dragging the mouse along the title bar of a window. You > need to hold the control key while doing this drag. Control-drag > mouse left on the title bar to increase transparency, Control-drag > right to decrease it. Control doubleclick the title bar to toggle > transparency. At the first time reading this I got confused about the dragging direction because you used the term "transparency". I would rather use "opacity" as it matches the alpha value. In the extension API I would replace XSetTransparency with XSetOpacity, at least because the parameter is OpacityValue. How hard would it be to add a slider to the title bar? > I took the sawfish source from the download page at > http://sawmill.sourceforge.net. The patch is meant to be applied > against sawfish-1.2-gtk1. If you download sawfish-1.2-gtk1.tgz and > apply this patch, make sure that you run autoconf at the top of the > sawfish source tree. This is because the patch touches configure.in, > config.h.in and Makedefs.in and these files need to be regenerated > using the autoconf system. Oh, and you do need to build sawfish > against an X11 tree with the X-Transparency extension patch applied. Would be cool if sawfish had plugin support so we wouldn't have to patch their source tree and distribute independently. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
