Hacker News new | ask | show | jobs
by exDM69 5079 days ago
> For example nvidia "twinview" seems to make many applications believe that my two 1920x1080 monitors are actually a single 3840x1080 monitor. I can correct this by using a seperate X session for each monitor but then this stops compiz from working.

NVidia ships Xrandr in 302 drivers (now in beta, available to ubuntu in ppa:ubuntu-x-swat/x-updates) so this should be a problem of the past.

It's been very annoying though, especially games which try to be clever and position the window centered on the screen or maximize to full screen have been half on the left and half on the right monitor.

1 comments

I can fix it for many (not all) applications by adding this to /etc/environment.

SDL_VIDEO_FULLSCREEN_DISPLAY=1

SDK_VIDEO_FULLSCREEN_HEAD=1

What surprises me, given the number of programmers that use 2 monitors. How does this stuff not get found when applications are being tested?

Not like it would be a difficult fix either, just test for weird resolutions like 3840x1080 then ask the user "are you using 2 monitors?", if they answer yes then adjust the rendering target.