Olivier Chapuis spake unto us the following wisdom:
> - Executing the function without trying to grab at all. You suggest to 
> add such possibility.
> 
> - Try to grab just 2 times (this is really fast). If the grab succeed 
> everything is ok. If it fails execute the function any way. This is 
> maybe a bit stronger/better than the previous case. My fvwm do that for 
> any totally immediate function. This is not a perfect solution (but 
> never cause me problems). But at the time we get our first discussion on 
> this topic there was no consensus about how this should be expressed in 
> term of fvwm configuration (or not at all).

I think the previous is superior in at least some cases ... I have a
config snippet (below) which I tried to use to flash the titlebar of
urgent windows; it works OK, but causes focus weirdness (I think) due
to the grabs on some slower machines.  While the window is flashing,
occasionally keystrokes will be lost when the coincide immediately
with a colorset change.  I think the first option above would
alleviate this.

DestroyFunc Flash
AddToFunc Flash
+ I Style $0 Colorset 40
+ I Schedule 750 1 Style $0 Colorset 1
+ I Schedule 1500 1 Function Flash $0

Ethan

-- 
The laws that forbid the carrying of arms are laws [that have no remedy
for evils].  They disarm only those who are neither inclined nor
determined to commit crimes.
                -- Cesare Beccaria, "On Crimes and Punishments", 1764

Attachment: signature.asc
Description: Digital signature

Reply via email to