Question about Drawing!!!

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

Questions about motif? Contact us

3 posts / 0 new
Last post
Question about Drawing!!!

 

How can I set the policy resource in order to repaint the window by the server itself.

Now I used XCopyArea function, but I do want the server repaint itself.

 ICS_support

You can`t.

That is, you can set the window such that the server might refresh it, via BackingStore.

But you can`t rely on such behavior, and you must be prepared to redraw yourself.

You can, however, make the drawing into a pixmap, which the server will maintain and redisplay, but this is much more expensive.

ICS_support

PS and if you are using XCopyArea, then you already have your drawing in a pixmap, so see functions such as XSetWindowBackgroundPixmap().