[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] ratmenu now dies when it looses focus (v2.0)
From: |
Jonathan Walther |
Subject: |
[RP] ratmenu now dies when it looses focus (v2.0) |
Date: |
Sun Jun 8 19:28:02 2003 |
User-agent: |
Mutt/1.5.4i |
On Sat, Oct 19, 2002 at 05:39:12PM +0100, Rupert wrote:
On Fri, Oct 18, 2002 at 03:52:28PM +0200, Bj?rn Lindstr?m wrote:
>b) The option of making ratmenu die as soon at it looses focus.
How can a program RELIABLY detect when it's window is no longer on top?
Purely reacting to mapping events is easy; is there a coresponding unmap
event that acts the same way so I don't have to poll every second?
I've tried to make a patch, but I have my doubts about how reliable this
is as there is a mysterious FocusOut event generated when ratmenu fires
up. But it seems to work for me.
http://www.maths.lancs.ac.uk/~levene/ratmenu-focusout.diff
Thanks for your patch. I discussed it with Shawn and used a different
configuration event as the trigger for killing ratmenu, but it has the
effect.
I also used a different option; instead of making it a special option I
made it the default. If you want the original behavior, where the menu
persists like a regular window, you use the -persist option. As with
all options, it must go BEFORE you start putting the menu entries and
their related commands on the command line.
I have uploaded ratmenu-2.0 to the debian archives, and the ratmenu
tarball will be available on the Debian website shortly.
Although I didn't use your patch directly, Rupert, it helped clarify to
me what needed to be done, so I added you to the CREDITS in the comments
at the head of ratmenu.c
Cheers!
Jonathan
--
It's not true unless it makes you laugh,
but you don't understand it until it makes you weep.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Geek House Productions, Ltd.
Providing Unix & Internet Contracting and Consulting,
QA Testing, Technical Documentation, Systems Design & Implementation,
General Programming, E-commerce, Web & Mail Services since 1998
Phone: 604-435-1205
Email: address@hidden
Webpage: http://reactor-core.org
Address: 2459 E 41st Ave, Vancouver, BC V5R2W2
pgpzPPLsp6nwr.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [RP] ratmenu now dies when it looses focus (v2.0),
Jonathan Walther <=