How to determine is window is displayed on Server?

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
How to determine is window is displayed on Server?

Submitted by Anonymous on Fri, 07/12/2002 - 17:38. Developers
I am writing a video display application. It gets frames of data from a hardware sounce and paints them into the application`s set of double buffered pixmaps. On expose events they are painted in the window. A XtAppTimer event sequences grabbing and painting new frames.

Problem is when the window gets hidden by the window manager I get no indication and can`t stop the timer (which consumes quite a bit of compute resource). Would like to not have CPU used when window doesn`t event show up on the server. How can I tell when the window is up?

Thanks in Advance!

ICS_support

Track the visibility notify events on it. Xt can do this for you if you are using a widget-based window.