<div dir="ltr">On Fri, Dec 14, 2012 at 6:21 PM, Mario Pastorelli <span dir="ltr">&lt;<a href="mailto:pastorelli.mario@gmail.com" target="_blank">pastorelli.mario@gmail.com</a>&gt;</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&#39;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&#39;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&#39;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&#39;t be able to reproduce Compiz&#39;s behavior perfectly, because it relies on OpenGL and there don&#39;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 href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>

<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div><br>
</div>