SFML community forums

Help => Window => Topic started by: Aster on November 01, 2013, 04:31:07 pm

Title: SFML Windowing Does Not Work With Xinerama
Post by: Aster on November 01, 2013, 04:31:07 pm
Hello,

I just switched from the open source nouveau drivers to nVidia's official nvidia drivers. I tried launching an SFML app, and I get this:

Failed to use the XRandR extension while trying to get the desktop video modes
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  151 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x1c00001
  Serial number of failed request:  48
  Current serial number in output stream:  48

The reason for this is clear; XRandR is failing. It's failing because I use the nvidia driver, which disables XRandR in favor of the more flexible Xinerama, since I have a rather complicated GPU/display setup.

I understand the fix: "Use the open-source drivers!!!" This, I might consider, but not everyone will. I can't just tell all of my Linux users "Oh yeah, if you happen to use the faster, more complete nvidia drivers, you can't run my software!". I don't think anyone wants to do that.

I'd make this a feature request, but for now I want to know if there's a workaround, or if it's something that needs to be fixed.
Title: Re: SFML Windowing Does Not Work With Xinerama
Post by: Laurent on November 01, 2013, 04:48:12 pm
Quote
I understand the fix: "Use the open-source drivers!!!"
Nop. The fix is "implement a Xinerama backend". Unfortunately this is very low on the task list, so don't hesitate to contribute ;)

You can open a task on the tracker.
Title: Re: SFML Windowing Does Not Work With Xinerama
Post by: Aster on November 01, 2013, 06:04:09 pm
Why would it be low on the list? You're excluding many users.
Title: Re: SFML Windowing Does Not Work With Xinerama
Post by: Aster on November 01, 2013, 06:06:14 pm
Made an issue on GitHub, I'll look into fixing it, I guess.