Multiple verve-plugins in different panels
Brian J. Tarricone
bjt23 at cornell.edu
Fri Jul 28 02:52:37 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
On 7/27/2006 5:48 PM, Jannis Pohlmann wrote:
> On Thu, 27 Jul 2006 13:34:16 +0530, Biju Chacko wrote:
>> On Wed, 26 Jul 2006 21:17:42 +0530, Jannis Pohlmann
>> <info at sten-net.de> wrote:
>>> On Wed, 26 Jul 2006 15:47:27 +0200, Mike Massonnet wrote:
>>>> Wed, 26 Jul 2006 14:44:07 +0200 - Jannis Pohlmann
>>>> <info at sten-net.de> wrote :
>>>>> BTW, I now tweaked the code to allow newer Verve instances to
>>>>> gain the ownership for org.xfce.Verve, so the last created
>>>>> instance grabs the focus when verve-focus is executed.
>>>> It would make sense if the last focused instance gain the
>>>> ownership. This way you can have the choice of which verve to
>>> That sounds hacky (messy, even). The last created instance gains
>>> ownership and is focused. This is what I - as a user - would expect.
>> Actually, the last created instance is not necessarily obvious --
>> it's dependent on how your panel was initialised.
>> A better solution is to optimise for the most common case (which is a
>> bit of work). You'll need to restrict verve to have one instance per
>> screen and verve-focus will focus the verve command line on the
>> invoking screen.
> You're right, but this sounds rather complicated - I doubt it's worth
> the effort.
Not really. Just create an X selection, say something like
VERVE_SELECTION_(screennum), and assert ownership on the selection. If
that fails, then it means there's already a verve instance on that
screen. Check xfdesktop's main.c for an example how to do this, though
you'd want to do one per screen (append the screen number as above)
instead of xfdesktop's one per session.
(Actually I don't remember if selections are per-screen or per-display,
so you might not even need to append the screen number to the selection
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v188.8.131.52 (MingW32)
-----END PGP SIGNATURE-----
More information about the Xfce4-dev