[openbox] xfishtank

Dana Jansens dana at orodu.net
Wed Nov 16 00:13:57 EST 2011


On Tue, Nov 15, 2011 at 9:11 PM, Dana Jansens <dana at orodu.net> wrote:

> On Tue, Nov 15, 2011 at 8:55 PM, Jim Rees <rees at umich.edu> wrote:
>
>> I'm trying to use xfishtank with openbox and my desktop button events (for
>> bringing up menus) are getting lost.  Xfishtank creates a window the size
>> of
>> the desktop and keeps it lowered, below all other windows.  Fish swim
>> around
>> in this window.  Button presses in the xfishtank window arrive fine, get
>> ignored, and propagate up to the root (or virtual root) window, but
>> openbox
>> ignores them.  A quick look at the source suggests that openbox only
>> handles
>> button presses directed at the virtual root window, not ones that arrived
>> on
>> some other window and propagated up.
>>
>
> 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's less desirable in most other cases.
>
> 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.
>
> Here's related bug: https://bugzilla.icculus.org/show_bug.cgi?id=3702
>
> I tried changing the event window and re-sending with XSendEvent but that
>> didn't work.  Also changing my mouse button context from Root to Desktop.
>>
>> I can get it to work by drawing the fish directly in the virtual root
>> window
>> instead of creating a new window, but this is less than optimal.
>>
>> Is there a "correct" way to make this work, or is xfishtank just too old
>> and
>> misbehaved?
>>
>
Sorry, one thought, since this works for desktop windows with icons etc.
 You could change the window's type to DESKTOP rather than NORMAL, and then
any "Desktop" context mouse bindings will work there - to open a menu etc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20111115/635c2e3f/attachment.htm>


More information about the openbox mailing list