On Thu, Jul 15, 2004 at 11:45:17AM -0400, David Wu wrote:
> Hi all fvwm gurus
> 
> Im trying to implement the following behavior in a function for use in
> FvwmTaskBar's Click1 function. But I am having trouble doing so
> 
> The following behavior is desired, note that the function will quit
> using "Break" as soon as one option is chosen and executed
> 
> 1. the window will be raised and focused if it is overlapped by any
> window (i.e not the top most window)
> 2. the window will be raised and focused if it is not currently focused,
> even if it is the top most window
> 3. the window will be minimized if it is already the top most window and
> its focused
> 4. the window will be deiconified and raised and focused if it is
> currently in a iconified state
> 
> here is what i have right now 
> 
> DestroyFunc Raise-or-Iconify
> AddToFunc Raise-or-Iconify
> + I ThisWindow (Iconic) Deiconify-and-Raise
> + I TestRc (Match) Break
> + I ThisWindow (!Raised) Focus-and-Raise
> + I TestRc (Match) Break
> + I ThisWindow (!Focused) Focus-and-Raise
> + I TestRc (Match) Break
> + I Iconify
> 
> The problem I Have is the line 
> + I ThisWindow (!Raised) Focus-and-Raise
> Because testing for Raised condition also require the window to be
> "fully visible within the view port". Therefore a window which is on the
> very top but part of it not in the current viewport will cause it to
> return "not raised" even though the window is on the very top (causing
> option 1 to be executed when option 3 is desired). Is there a way to
> simply test if a window is on the very top without the "fully visible
> condition"? Any workaround is appreciated 

Try the new condition "Overlapped" I just committed to CVS.

Ciao

Dominik ^_^  ^_^

 --
Dominik Vogt, [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]

Attachment: pgpJneU9AC5j3.pgp
Description: PGP signature

Reply via email to