<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Wow, one of the fastest and most
accurate answer I have ever had. Thank you Brandon! I'll read the
docs and eventually the code of XMonad.Layout.ShowWName.<br>
<br>
On 12/15/2012 12:39 AM, Brandon Allbery wrote:<br>
</div>
<blockquote
cite="mid:CAKFCL4Wmmi0U2cBsYTSwsjXonUCve=ypd3D=rQpO8t+oTG_QTw@mail.gmail.com"
type="cite">
<div dir="ltr">On Fri, Dec 14, 2012 at 6:21 PM, Mario Pastorelli <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:pastorelli.mario@gmail.com" target="_blank">pastorelli.mario@gmail.com</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">workspace
to the previous workspace, then a left arrow appears in the
centre of the screen. Those hints are very similar to what
happen on other WMs and personally very useful. With this
idea in mind I started to think about requirements: they
should be always visible (on top of the stack) such that the
user can see them but they should be not-intrusive so that
they don't disturb the work of the user. They should be
removed automatically after sometime. One last thing, I
would like to stick to the XMonad color configuration.<br>
</blockquote>
<div><br>
</div>
<div>The place-and-remove stuff you can crib from
XMonad.Layout.ShowWName. What you would place is a shaped
override-redirect window (you may need to find X11 Shape
extension bindings; I think these already exist somewhere
but may not be in the Haskell X11 package) so that *only*
the arrow will be drawn; ideally it would also have an alpha
channel so it can be translucent, but that will only work if
the user is also running a compositing manager.</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
2) how to put the window on top of the stack such that it is
always visible. For now, for some reason the arrow is </blockquote>
<div><br>
</div>
<div>You want an override-redirect window, not a window that
goes into the stack. Since you're already using
mkUnmanagedWindow, this should already be true; you may also
want to explicitly raiseWindow it to put it on top, and
possibly something in the logHook to re-raise it as needed.</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">3) how to
ignore the input such that it pass trough the created window<br>
</blockquote>
<div><br>
</div>
<div>
Set a zero event mask and do-not-propagate mask, so the
events are passed on.</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
5) an open question: is there any way to use composite such
that the windows can be transparent? I don't think </blockquote>
<div><br>
</div>
<div>You must run a separate compositing manager for this.
compton is the one that seems to work best for most people.
That said, just using a shaped window constrained to the
arrow might be good enough.</div>
<div><br>
</div>
<div>Note that you won't be able to reproduce Compiz's
behavior perfectly, because it relies on OpenGL and there
don't seem to be any decent standalone OpenGL compositing
managers.</div>
<div><br>
</div>
</div>
-- <br>
<div dir="ltr">
<div>brandon s allbery kf8nh
sine nomine associates</div>
<div><a moz-do-not-send="true"
href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>
<a moz-do-not-send="true"
href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad <a
moz-do-not-send="true" href="http://sinenomine.net"
target="_blank">http://sinenomine.net</a></div>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>