Your app is broken. XF86VidModeSwitchToMode, like most other
functions in Xlib and extensions is not a synchronous operation.
The request doesn't even get sent to the server unless you do
something that sends it. That would include an explicit XFlush
or XSync or some operation that would do an implicit XFlush
such as an operation that had a reply.
Place an XSync(d, 0) after your XF86VidModeSwitchToMode call.
Mark.
On Wed, 26 Mar 2003 [EMAIL PROTECTED] wrote:
> [This e-mail has been automatically generated.]
>
> http://bugs.xfree86.org//cgi-bin/bugzilla/show_bug.cgi?id=48
>
> Summary: XF86VidModeSwitchToMode must be called twice (!?)
> Product: XFree86 Server
> Version: 4.2
> URL: http://plausible.org/xfree/xmodes.c
> OS/Version: Linux
> Status: NEW
> Severity: normal
> Priority: P2
> Component: other
> AssignedTo: [EMAIL PROTECTED]
> ReportedBy: [EMAIL PROTECTED]
>
>
> This function produces its documented behavior only when called twice in
> succesions on the same client connection. Calling it once is a noop. This has
> apparently been true forever, you can google for all the people who have
> "discovered" this since the extension was written.
>
> Simple test case at: http://plausible.org/xfree/xmodes.c
>
>
>
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
> _______________________________________________
> XFree86 mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/xfree86
>
_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86