On 14.12.2011 06:26, Juan Antonio Zuloaga Mellino wrote:
Hello,
I like to have a "sticky- always on top - 60%opacity - no input" window, so
I can have a small floating video playing while I'm doing other things,
without having to move the window when it gets in the way.
With "no input", I mean that if I click the window, I actually click the
one that is behind it...
For this I use xwinwrap
http://tech.shantanugoel.com/projects/linux/shantz-xwinwrap
But I wanted to know if there is some way to do this with the awesome api,
to be able to turn the "no input" on/off dynamically.
The code that xwinwrap uses for the no input is
if (noInput)
{
Region region;
region = XCreateRegion ();
if (region)
{
XShapeCombineRegion (dpy, win, ShapeInput, 0, 0, region,
ShapeSet);
XDestroyRegion (region);
}
}
But my knowledge of X is very shallow to fully understand it...
Hi,
I assume it uses the normal "opacity" property to make the window 60%
translucent?
Your code sample uses the SHAPE extension. With version 1.0 you can only use it
to give a window a non-rectangular area. Version 1.1 (or sth like that) adds the
ability to add an input region where everything else is "click-through". This is
the "Input" shape.
There once was some code for setting a window's shape with awful. Back then it
was only used to implement rounded corners and no one used those rounded
corners. When it got in the way, the code was dropped again.
So no, you can't set the input shape (or any of the two other shapes) from lua.
I'm not even sure if this wouldn't break things like xeyes...
Uli
--
To unsubscribe, send mail to [email protected].