Re: Determining if a window is iconified.

2003-01-27 Thread Dan Espen
Marcus Lundblad [EMAIL PROTECTED] writes:
 Is there some good way (from a shell script) to determine if a window is
 iconified? 

This seems to work:

FvwmCommand 'Next (window1 iconic) echo yesitsiconic'

-- 
Dan Espen   E-mail: [EMAIL PROTECTED]
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Determining if a window is iconified.

2003-01-27 Thread Cameron Simpson
On 22:47 27 Jan 2003, Marcus Lundblad [EMAIL PROTECTED] wrote:
| Is there some good way (from a shell script) to determine if a window is
| iconified? 
| I'm writing tests for the new Closable, Maximizable etc. styles.
| 
| xwininfo gives the geometry of the windows normal size, so there is no
| difference when iconifiying.
| 
| I guess an alternative is to have an interactive script where the user is
| asked wuestions interactivly.

Maybe a tiny C program to check if the window id is mapped?
-- 
Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/

Don't close your eyes for the crash; you'll miss the best part.
- Bruce MacInnes, Skip Barber Driving School instructor
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Determining if a window is iconified.

2003-01-27 Thread Kingsly John
+++ Marcus Lundblad [2003-01-27 22:47:44]:

 Is there some good way (from a shell script) to determine if a window is
 iconified? 
 I'm writing tests for the new Closable, Maximizable etc. styles.
 
 xwininfo gives the geometry of the windows normal size, so there is no
 difference when iconifiying.

in the output of xwininfo... 

Map State: IsViewable

becomes 

Map State: IsUnMapped

when the window is iconified.

Kingsly
-- 
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]