Questions about motif? Contact us
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.
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.
PS and if you are using XCopyArea, then you already have your drawing in a pixmap, so see functions such as XSetWindowBackgroundPixmap().
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.
PS and if you are using XCopyArea, then you already have your drawing in a pixmap, so see functions such as XSetWindowBackgroundPixmap().