Re: FVWM: Alternative menu positions

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Thu, 25 Jul 2002 15:16:47 +0200

On Thu, Jul 25, 2002 at 01:07:34PM +0000, Mikhael Goikhman wrote:
> On 25 Jul 2002 14:49:17 +0200, Marcus Lundblad wrote:
> >
> >
> > > You can write a shell script and use it with PipeRead:
> > >
> > > Mouse 1 I N PipeRead "my_iconmenu.sh WindowMenu $[i.x] $[i.y] $[i.width] $[i.height]"
> > >
> > > --------------------------- my_iconmenu.sh -----------------------
> > > if [[ $3 -lt 500 ]]; then
> > > echo Menu $1 rectangle "$4"x"$5"+"$2"+"$3" c +100
> > > else
> > > echo Menu $1 rectangle "$4"x"$5"+"$2"+"$3" c -100m
> > > fi
> > > ------------------------------------------------------------------
> >
> > OK, thanks!
> >
> > > You may wonder why the "icon" context rectangle doesn't work. I'm
> > > not sure yet, but it looks like a bug.
> >
> > Hmm, I actually use the icon cntext, like: icon 0 -100 (I'm not sure
> > exactly, as I'm visiting my parents and am forced to use Windows *shudder*
> > and a 56 kbit modem (so therefore there is some spelling errors, because
> > it lags so much in pine :-()
> >
> > And as far as I can tell the icon contex works as I expect it (maybe
> > luck...)
>
> "Context" context works directly, but not using PipeRead or SendToModule.
> It is fixed by Dominik as I write this message.

This depended on the icon layout:

  Only a pixmap: worked fine
  Pixmap+Title: only pixmap was taken into account
  Only title: the pointer position was used instead

With the fix, the whole icon geometry is taken into account.

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, mail: dominik.vogt_at_schlund.de, phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Jul 25 2002 - 08:18:08 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST