> Is there a way I can determine if the window has been minimized ? Or not in
> the current workspace ? Or maybe there is a better way to do what I am
> trying to do.
Check to see if the Window is mapped with XGetWindowAttributes():
XWindowAttributes attrs;
XGetWindowAttributes( fl_get_display(),
form->window,
&attrs );
if ( attrs.map_state == IsUnmapped )
XMapRaised( fl_get_display(),
form->window );
should do it.
I'm not sure what XGetWindowAttributes() will tell you if it's not in
the current workspace -- perhaps IsUnviewable. You should probably
experiment.
Why you can't query the Window Manager directly to find this out is
beyond me.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/