<div class="gmail_quote">On Tue, Nov 15, 2011 at 9:11 PM, Dana Jansens <span dir="ltr">&lt;<a href="mailto:dana@orodu.net">dana@orodu.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="gmail_quote"><div class="im">On Tue, Nov 15, 2011 at 8:55 PM, Jim Rees <span dir="ltr">&lt;<a href="mailto:rees@umich.edu" target="_blank">rees@umich.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I&#39;m trying to use xfishtank with openbox and my desktop button events (for<br>
bringing up menus) are getting lost.  Xfishtank creates a window the size of<br>
the desktop and keeps it lowered, below all other windows.  Fish swim around<br>
in this window.  Button presses in the xfishtank window arrive fine, get<br>
ignored, and propagate up to the root (or virtual root) window, but openbox<br>
ignores them.  A quick look at the source suggests that openbox only handles<br>
button presses directed at the virtual root window, not ones that arrived on<br>
some other window and propagated up.<br></blockquote><div><br></div></div><div>IIRC, Ignoring was done to prevent clicks on non-root windows from opening Openbox menus.  Ironically exactly what you would like to happen here, though it&#39;s less desirable in most other cases.</div>


<div><br></div><div>One case was the popup dialog windows, which you could mouse wheel on, and cause desktop switching.  But we could just catch mouse events on them and prevent them from bubbling up to root, instead.</div>


<div><br></div><div>Here&#39;s related bug: <a href="https://bugzilla.icculus.org/show_bug.cgi?id=3702" target="_blank">https://bugzilla.icculus.org/show_bug.cgi?id=3702</a></div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



I tried changing the event window and re-sending with XSendEvent but that<br>
didn&#39;t work.  Also changing my mouse button context from Root to Desktop.<br>
<br>
I can get it to work by drawing the fish directly in the virtual root window<br>
instead of creating a new window, but this is less than optimal.<br>
<br>
Is there a &quot;correct&quot; way to make this work, or is xfishtank just too old and<br>
misbehaved?<br></blockquote></div></div></blockquote><div><br></div><div>Sorry, one thought, since this works for desktop windows with icons etc.  You could change the window&#39;s type to DESKTOP rather than NORMAL, and then any &quot;Desktop&quot; context mouse bindings will work there - to open a menu etc. </div>

</div><br>