On Tue, 25 Jun 2002, Devrim Erdem wrote:
> Hi,
>
> I am changing the gamma value while my application is running at the
> beginning and at exit.
> Gamma change work at the beginning, but gamma change request at exit of
> my program doesn't work.
That's probably because your client never sent the request to
the X-server. X requests by your client get buffered by your
client and don't get sent to the server unless explicitly or
implicitly flushed. In the case that you quit, what you have
in your buffer will never get sent to the server. You need
to place an XSync after your last request.
>
> I change the gamma using XF86VidModeSetGamma but as far as I understand,
> this call doesn't immediately change gamma, but it takes some time to apply.
>
It's applied immediately if it ever gets to the X-server.
If you ever want something to get sent to the server immediately,
you need to call XFlush. XSync is a more heavyweight version that
will wait for an acknowledgement before allowing you to continue.
Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert