• Register

The group for gamers dedicated to Linux. No matter if game developers or game players all are welcome interested in Linux as a gaming platform.

Forum Thread
  Posts  
Twinview (Groups : Linux Gamers : Forum : Desura linux client : Twinview) Locked
Thread Options
Nov 24 2011 Anchor

Had the annoying problem of some games using both monitors.

Added an environment variable to the top of the desura launch script and it fixed it.

export SDL_VIDEO_FULLSCREEN_HEAD=0

Hope this helps someone else.

Edited by: airencrackenz

Nov 30 2011 Anchor

Ooh that's interesting!

I tend to just run mine in a Window somewhere close to the fullscreen resolution of one monitor. The problem with that is you get window decoration. I've been trying for as long as I can remember to get Compiz to paint SDL windows with the fullscreen hint but haven't found away. Looking through the rest of SDL's environment variables there might be a way to set a class on the window and have compiz target it. Will update when I know more.

Yes! That sort of works!

I ran

env SDL_VIDEO_X11_WMCLASS=pie /opt/revengeofthetitans/revenge.sh

and used Compiz's Window Rules plugin to target class=pie for fullscreen and it removed decorations and painted above the panels. The problem specific to Revenge of the Titans (and a couple of others) is you can't set the resolution... But this should work for other SDL games where you can set the resolution to just one of your screens in-game.

Dec 1 2011 Anchor

Ah, I don't use compiz, or any sort of DE, but that looks like it'll be useful for people that do.

Dec 1 2011 Anchor

I can't imagine you use no DE at all...

Dec 2 2011 Anchor

Dragonlord wrote: I can't imagine you use no DE at all...


I use a window manager (tiling), but I don't have a full desktop environment. I don't use a graphical file manager either. I dunno, just the way I prefer to run.

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.