csgo-osx-linux
csgo-osx-linux copied to clipboard
GNOME: Fullscreen CS:GO window is unmaximized when switched to via Alt+Tab
Your system information
https://gist.github.com/kerrickstaley/d4f33e520f5beca18ac1679df80d6907
Have you checked for system updates?: I think so?
Please describe your issue in as much detail as possible:
To reproduce:
- Run the game Counter Strike: Global Offensive in fullscreen in GNOME Shell (3.24.3, Mutter version 3.24.4) under Wayland (1.14.0).
- Switch to another window.
- Use Alt+Tab to switch back to the CS:GO window.
Expected result: Window returns to fullscreen.
Actual result: Window is almost fullscreen, but the top of the window doesn't reach the top of the screen. It stops where the GNOME Shell top bar would be, but instead of the top bar being visible, you see the desktop. (See attached image).
Notes:
I noticed that if I call .maximize(3)
on the CS:GO MetaWindow object from GNOME Looking Glass, it fixes the issue until I switch windows again (3 == META_MAXIMIZE_BOTH).
Calling .unmake_fullscreen()
followed by .make_fullscreen()
on the MetaWindow object also temporarily fixes the issue.
If I switch to the window by opening the Activities overview and clicking the window, this issue does not occur.
This issue also occurs in GNOME under XOrg.
Cross-posted from https://bugzilla.gnome.org/show_bug.cgi?id=786305
Sounds like an interaction issue between SDL and XWayland. Assigning a SDL dev.
This has also happened to me. Pretty annoying because in-game it will hide (half appearance) amounts such as health, armor, and ammunition.
I would say it's not a bug related only with wayland cause it's happen to me with Xorg (nvidia proprietary driver didn't work with wayland yet). And that pretty annoying, i have to play in windows format to not having this bug ( this happen in dota 2 too )
A way to fix this i found on reddit
Workaround I've found (assumes your Windows/Super key activates the Gnome Shell activities overview): Press Super and select the CSGO window with your mouse -- if you alt-tab to CSGO, it'll push down like you show in your screenshot.
@vonclutch You're right. It affects Xorg and wayland sessions. Unfortunatly the workaround is not sufficient starting with Gnome 3.26 the window does no longer use Fullscreen redirection once you change to it after pressing the Super key (extreme stutter and low fps). Tested on Gnome 3.26 + Nvidia blob.
@Mershl It does the trick for me ( ubuntu 17.10/GNOME Shell 3.26.1 ) you have to switch every windows with your mouse.
Fullscreen redirection has been fixed in mutter: https://bugzilla.gnome.org/show_bug.cgi?id=788493. I've tested the fix successful on Arch + Gnome 3.26 + Nvidia Blob. EDIT: This also fixes the fullscreen issue after ALT+TAB or SUPER key.
@Mershl Any idea when the update will be push ? :D
@vonclutch It's live on Arch since version 3.26.1+15+gb48c34979-1 of mutter. Sorry, I don't have information on other distros.
this also happens with tf2, and most likely other source (or even gold source) games. very frustrating. glad to see i'm not alone. hope this issue gets fixed, pronto.
Can confirm that it still happens on Ubuntu 18.10 and Arch Linux as of March 16th 2019.
I tend to alt tab a lot to check other things, and this makes it very annoying to do so. The only "fix" I've found is to switch from fullscreen to windowed and back.
Or changing the resolution.
This also happens in Dota 2.
Still happening today in csgo, the fix i found is not using xorg or wayland while im playing
I updated the bug description to reflect the fact that it occurs in Xorg as well.
Not sure what changed lately, but when using the latest version of Gnome on Arch, alt tabbing no longer moves the whole window down. Same thing with changing the volume.
It'll move the window down for a second, and where the gnome shell bar you will see your desktop, but a second later it'll turn to normal. It's not perfect, but it doesn't bother me anymore. This is on X11. I haven't tested it on Wayland.
This was fixed on ubuntu 19.04 for me at least
I can also confirm that Ubuntu 19.04 also fixes this issue now. Looks like if Gnome is up to date you shouldn't have this problem anymore.
I'm on Pop!_OS 19.10 and the fix seems to either have regressed because I'm running into this exact same thing with CS:GO (and other games including Spec Ops: The Line).
GNOME Shell 3.34.1 (pop mode) GTK 3.24.12
@breadland Are you still on Ubuntu 19.04? I'm curious if you've started experiencing this again if you're on 19.10 now.
Hello, is anyone seeing this issue on an up to date system?
Reference: https://www.reddit.com/r/linux_gaming/comments/f9npxo/counterstrike_global_offensive_gnome_full_screen/
This is still happening in GNOME 3.34 on Wayland.
This is happening with me. CSGO on Pop OS 20.04 I have two monitors, one 1440p (main) and one 4k (secondary).
If I have the game in full screen on my main monitor, then tab out and back in, the game seems to have been stretched out to fit my second monitor. I have to press Super key, move it to secondary, make CSGO windowed, move it back to main monitor, then apply fullscreen again.
This is still happening to me on Gnome 42 with Wayland on Fedora 36.