Multiple verve-plugins in different panels
info at sten-net.de
Fri Jul 28 03:49:38 CEST 2006
On Thu, 27 Jul 2006 17:52:37 -0700, Brian J. Tarricone wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 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
> >>>> focus.
> >>> 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.
Sounds interesting, thanks for the hint.
More information about the Xfce4-dev