How I achieved fullscreen windowed mode with spring
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: How I achieved fullscreen windowed mode with spring
abma, make default stick it in the top left
Re: How I achieved fullscreen windowed mode with spring
I think not being able to (accidently) move the window is one of the aims of this.
Though being able to do rightclick on program in taskbar -> move would be nice.
First tried with (defaul) like this:
XResolution=0
YResolution=0
seems to work. (looks just like normal fullscreen)
Then tried:
XResolution=1024
YResolution=768
and the window was still completly on screen.
Try setting WindowPosX and WindowPosY?
hm, on alt tab it seems to mess up unit icons:
/edit
Tried 3 times with WindowBorderless=1 and 3 times with WindowBorderless=0
only happend with WindowBorderless=1
water gets graphic errors too.
Though being able to do rightclick on program in taskbar -> move would be nice.
First tried with (defaul) like this:
XResolution=0
YResolution=0
seems to work. (looks just like normal fullscreen)
Then tried:
XResolution=1024
YResolution=768
and the window was still completly on screen.
Try setting WindowPosX and WindowPosY?
hm, on alt tab it seems to mess up unit icons:
/edit
Tried 3 times with WindowBorderless=1 and 3 times with WindowBorderless=0
only happend with WindowBorderless=1
water gets graphic errors too.
Re: How I achieved fullscreen windowed mode with spring
Every time I set them, save, and restart they are some different value.abma wrote:you've to edit springsettings.cfg and set
WindowPosX
WindowPosY
+ WindowState=0 (?)
currently there is no possibility to move the window, if your window-manager cant do it.
in linux you can hold alt + left mouse + move it arround...
Edit; In fact, every time I run spring, they are changed to something else.
Re: How I achieved fullscreen windowed mode with spring
Blame crappy X11 protocol. It's a pain in the ass.
In the X11-world windows don't have any border. That's why you need stupid overloaded `Window Decorators` in X11, which do nothing else than creating a SECOND WINDOW AROUND YOUR WINDOW! and drawing the so called window frame in it (titlebar, close buttons, ...).
Now the problem is obvious: cause the frame doesn't really belong to the window, there is no X11-way to get the coordinations of that frame window. Means when you create a window, save the coords of it and then recreate a window with those saved coords, the windows will shift to bottom right!
Now after ages of wasted hours with google, there is no damn easy, fail-safe way to get the coords of the frame window. Sure I wrote a few lines for Spring that worked for me, but they don't have to work for others nor do they still have to work after a Window Decorator upgrade/switch.
X11 burn in hell!
And its devs, because they are too ignorant to support wayland!
In the X11-world windows don't have any border. That's why you need stupid overloaded `Window Decorators` in X11, which do nothing else than creating a SECOND WINDOW AROUND YOUR WINDOW! and drawing the so called window frame in it (titlebar, close buttons, ...).
Now the problem is obvious: cause the frame doesn't really belong to the window, there is no X11-way to get the coordinations of that frame window. Means when you create a window, save the coords of it and then recreate a window with those saved coords, the windows will shift to bottom right!
Now after ages of wasted hours with google, there is no damn easy, fail-safe way to get the coords of the frame window. Sure I wrote a few lines for Spring that worked for me, but they don't have to work for others nor do they still have to work after a Window Decorator upgrade/switch.
X11 burn in hell!
And its devs, because they are too ignorant to support wayland!
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: How I achieved fullscreen windowed mode with spring
Knorke:
You shouldn't be getting graphical corruption, it should be identical to regular windowed mode. What OS/Graphics card do you have? Could you post your infolog?
Forboding Angel:
People who play spring with dual monitors might not want the window pos for borderless at 0,0 that's why I didn't do that. I wasn't sure how best handle it..
FLOZi:
The window position shouldn't change if you run borderless or fullscreen, only when you run on regular windowed mode. What OS are you on?
You shouldn't be getting graphical corruption, it should be identical to regular windowed mode. What OS/Graphics card do you have? Could you post your infolog?
Forboding Angel:
People who play spring with dual monitors might not want the window pos for borderless at 0,0 that's why I didn't do that. I wasn't sure how best handle it..
FLOZi:
The window position shouldn't change if you run borderless or fullscreen, only when you run on regular windowed mode. What OS are you on?
Re: How I achieved fullscreen windowed mode with spring
win xp and nvidia 6800
infolog with Fullscreen=0, stuff breaks on alt tab, getting back into game takes some seconds:
http://pastebin.com/r8wcmBpK
Hm, it says "Hang detection triggered", not sure if it also said that yesterday.
infolog with Fullscreen=0, WindowBorderless=1
does not break on alt tab, minimizes instantly and takes no time to recover:
http://pastebin.com/gJg4dZKw
Also worth noting, when I tried yesteday the window with WindowBorderless=1 would cover the whole screen, like normal fullscreen.
When I tried now, I got this:
So I changed
WindowPosX=0 (was 32)
WindowPosY=0 (was 32)
and it was full screen again, but iirc it was 32 yesterday at as well.
infolog with Fullscreen=0, stuff breaks on alt tab, getting back into game takes some seconds:
http://pastebin.com/r8wcmBpK
Hm, it says "Hang detection triggered", not sure if it also said that yesterday.
infolog with Fullscreen=0, WindowBorderless=1
does not break on alt tab, minimizes instantly and takes no time to recover:
http://pastebin.com/gJg4dZKw
Also worth noting, when I tried yesteday the window with WindowBorderless=1 would cover the whole screen, like normal fullscreen.
When I tried now, I got this:
So I changed
WindowPosX=0 (was 32)
WindowPosY=0 (was 32)
and it was full screen again, but iirc it was 32 yesterday at as well.
Re: How I achieved fullscreen windowed mode with spring
So it works fine then..? Fullscreen should always be 0 with borderless otherwise it just uses the regular fullscreen. If switch to borderless you need to set WindowPosX/WindowPosY to 0 (spring tends to change them if you play on something else)knorke wrote:infolog with Fullscreen=0, WindowBorderless=1
does not break on alt tab, minimizes instantly and takes no time to recover
There seems to be a bug with borderless setting the WindowPos wrong which i'm gonna have a look at.
Re: How I achieved fullscreen windowed mode with spring
yes, maybe confused that yesterday. infolog should include springsettings.cfgSo it works fine then..? Fullscreen should always be 0 with borderless otherwise it just uses the regular fullscreen.
Re: How I achieved fullscreen windowed mode with spring
Would be nice to get this working, spring always fucks up my desktop when going to fullscreen, and for some reason it makes the windowskey act as shortcut to windows speech recognition on/off (so I can't run command with pressing win+R).
But is it possible to get edge-scrolling to work in windowed mode?
But is it possible to get edge-scrolling to work in windowed mode?
Re: How I achieved fullscreen windowed mode with spring
@Jools
type: /grabinputBut is it possible to get edge-scrolling to work in windowed mode?
Re: How I achieved fullscreen windowed mode with spring
So is this going to be put into the next Spring version? Would sure make it easier as a Linux user.
Re: How I achieved fullscreen windowed mode with spring
what do you mean with "this"? the windowed mode or grabinput?
grabinput works already... windowed fullscreen mode will be in the next version...
grabinput works already... windowed fullscreen mode will be in the next version...
Re: How I achieved fullscreen windowed mode with spring
Should have been more clear, was on about the fullscreen windowed mode, which as you say it is, now as a Linux player i am a little more excited :D