Discussion:
[SPAM] Re: How to generate an EXPOSURE event?
Daniel Nyström
2007-08-21 18:54:41 UTC
Permalink
Thanks for your reply.
The purpose was to not clear any area (that's why 0,0,0,0) but only
generate an exposure event.
Is it even possible?
: Earlier I tried GrClearArea (wid,0,0,0,0,1); and I think that worked on
: a window, but now I use GR_ROOT_WINDOW_ID for all graphics, and
: ClearArea just don't work. It sends a exposure event, but still clears
: the whole screen!
The last param to GrClearArea will force the server to clear
the area. Have you tried this call on the root window with
FALSE as the last parameter?
Look at the code in nanox/srvutil.c to see exactly how this call
is handled.
Regards,
Greg
Daniel Nyström
2007-08-20 11:15:02 UTC
Permalink
I wish to send an exposure event to my app, without touching the screen
(no ClearWindow e.g.).
Earlier I tried GrClearArea (wid,0,0,0,0,1); and I think that worked on
a window, but now I use GR_ROOT_WINDOW_ID for all graphics, and
ClearArea just don't work. It sends a exposure event, but still clears
the whole screen!

Are there any way I can just send an exposure event to an app? Like
InvalidateRect on Win32 GDI.
Greg Haerr
2007-08-21 17:44:39 UTC
Permalink
: Earlier I tried GrClearArea (wid,0,0,0,0,1); and I think that worked on
: a window, but now I use GR_ROOT_WINDOW_ID for all graphics, and
: ClearArea just don't work. It sends a exposure event, but still clears
: the whole screen!

The last param to GrClearArea will force the server to clear
the area. Have you tried this call on the root window with
FALSE as the last parameter?

Look at the code in nanox/srvutil.c to see exactly how this call
is handled.

Regards,

Greg

Loading...