PDA

View Full Version : [PATCH] Fix GetCurrentResolution for separate screen dual-heading


bdallen
2009-02-03, 23:12
http://xbmc.org/trac/ticket/5834

When Xinerama is not active XineramaQueryScreens returns bogus information when using separate screen dual heading with Nvidia drivers. Specifically it returns the resolution of the first screen even if run on the second screen. In any case if Xinerama is not active, it should not be trusted - the X11 calls return the correct resolution. This may happen with other drivers also.

Is there any reason not to check XineramaIsActive before using XineramaQueryScreens? i.e. are there buggy drivers that report not active when XineramaQueryScreens has needed information?