protonscr

Borderless window offset to leave space for titlebar.

steamopen reviewedSteam client
ValveSoftware/steam-for-linux#3284 · opened 2014-05-05 by raku-cat · updated 2022-01-06 · 14 comments · github
Rraku-cat 2014-05-05 github

I recently added a second monitor to my setup and wanted to go borderless windowed, i did -window -noborder and it worked for like the first one or two times and then stopped, I'm not sure what changed but I've tried all sorts of combinations of restarting it with options set and whatnot, I've tried setting -x and -y to 0 but it still visibly opens in the correct position and then pushes itself down. Its fixed temporarily by changing to fullscreen and then then back to windowed. The problem is mentioned here https://github.com/ValveSoftware/steam-for-linux/issues/831 where the dev claims it's been fixed even though people commented later that it was still happening, also its referenced here https://github.com/ValveSoftware/steam-for-linux/issues/2384 and here https://github.com/ValveSoftware/steam-for-linux/issues/2938 both of which it also does not list a solution.
Picture is attatched.
screenshot from 2014-08-14 19 24 07

The steps to reproduce it are

  • Add -window -noborder to launch options
  • Open the game

System info

Processor Information:
    Vendor:  GenuineIntel
    CPU Family:  0xf
    CPU Model:  0x4
    CPU Stepping:  0x3
    CPU Type:  0x0
    Speed:  2992 Mhz
    2 logical processors
    1 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Unsupported
    SSE4a:  Unsupported
    SSE41:  Unsupported
    SSE42:  Unsupported

Network Information:
    Network Speed:  

Operating System Version:
    Linux Mint 16 Petra (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.11.0-12-generic
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11405000
    X Window Manager:  Mutter (Muffin)
    Steam Runtime Version:  steam-runtime-release_2014-04-15

Video Card:
    Driver:  X.Org Gallium 0.4 on AMD RV710

    Driver Version:  3.0 Mesa 9.2.1
    OpenGL Version: 3.0
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x1002
    DeviceID:  0x954f
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1600 x 900
    Desktop Resolution: 2880 x 1024
    Primary Display Size: 17.44" x 9.80"  (20.00" diag)
                                            44.3cm x 24.9cm  (50.8cm diag)
    Primary VRAM Not Detected

Sound card:
    Audio device: SigmaTel STAC9221 A1

Memory:
    RAM:  3260 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  935213 Mb
    Largest Free Hard Disk Block:  799186 Mb

Installed software:

Recent Failure Reports:
Rraku-cat 2014-07-12 github

Can confirm issue still persists in latest client update. Any updates?

Rraku-cat 2014-08-03 github

Once again, latest client update, this time however i've updated to Linux Mint 17, still cinnamon, issue is still there.

Bbaos780 2014-08-14 github

My game starts with part of my background on the left. it then corrects itself(bumps itself over). However whatever that correction was, it causes me to crash when using alt+tab.

Rraku-cat 2014-08-15 github

Seeing as the lates steam update was somewhat bigger than most (UI changes and such) I thought i'd note this till happens. Also worth noting that changing to fullscreen mode in the game settings then back to window causes it to correct itself slightly, the window seems to size itself to be big enough for the entire screen as if the taskbar was not there so it places part of the window under the taskbar, and using alt+click to move it up leaves an equally sized portion cut off on the bottom. I have some screenshots of it:
Alt+click
screenshot from 2014-08-14 19 24 23
Full screen then windowed
screenshot from 2014-08-14 19 26 46

Rraku-cat 2014-08-31 github

New client update today, still happens.

Rraku-cat 2014-11-02 github

October 22nd client update, over half a year from when i opened this issue, and it is still not fixed.

Bbaos780 2014-11-05 github

It still bumps over, but now I get double vision.
http://i423.photobucket.com/albums/pp317/zntch/2014-11-02-181.jpg

Rraku-cat 2014-11-08 github

One thing ive noticed is that it makes a windows too large for the screen, this happens even more in plain windowed mode, no matter which way you move it part of the window will be off the screen at the top or bottom, windowed or borderless windowed.

Rraku-cat 2014-11-08 github

At last I finally have a (temporary) sulution, I found that the x and y launch options (-x -y ) had no effect at all, I could use them to make the window start lower but when I set them both to 0 it still goes up for a second and then pushes down. As i have noted before, the window also appears to be too large, so I tried changing it with the launch options for that (-w -h ) and after testing i found setting it to 1600x875 (on a 1600x900 monitor) it finally launches correctly, but pushed down, so I can move it up and the window is the correct size.

Rraku-cat 2015-12-08 github

Still works for the most part with the workaround, gmod acts kinda silly sometimes, but otherwise the problem still occurs.

Rraku-cat 2016-01-03 github

Happy new years! Bug still occurs!

Rraku-cat 2016-02-03 github

I recently switched to XFCE and the bug no longer occurs, it was still present in the release of cinnamon I was using though so I will leave this open.

FFCMenu 2016-12-26 github

I found a better workaround that works quite well.
For me, once the video settings are changed in-game, it corrects the Y position and no longer has that space at the top. Obviously doing this every time you start the game is annoying, but what you can do is go into garrysmod\cfg\autoexec.cfg and add the following lines (replacing the width/height with your desired resolution):

mat_setvideomode width height 0
mat_setvideomode width height 1

So for a 2560x1440 resolution, you'd input this:

mat_setvideomode 2560 1440 0
mat_setvideomode 2560 1440 1

What this command does is enable fullscreen (the 0 at the end), and immediately after enables windowed mode (the 1 at the end) which then corrects the Y axis.

Not a real fix by any means, but it works.

Yyllekz 2022-01-06 github

Is there any word on fixing this officially? I'm running into this problem on Linux Mint, specifically when launching Counter-Strike Source using -sw -noborder -novid. The window is drawn above the panel (aka taskbar) and spills out of bounds above the monitor.