csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

GNOME: Fullscreen CS:GO window is unmaximized when switched to via Alt+Tab

Open kerrickstaley opened this issue 6 years ago • 20 comments

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:

  1. 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).
  2. Switch to another window.
  3. 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.

Screenshot

Cross-posted from https://bugzilla.gnome.org/show_bug.cgi?id=786305

kerrickstaley avatar Aug 15 '17 07:08 kerrickstaley

Sounds like an interaction issue between SDL and XWayland. Assigning a SDL dev.

kisak-valve avatar Aug 21 '17 12:08 kisak-valve

This has also happened to me. Pretty annoying because in-game it will hide (half appearance) amounts such as health, armor, and ammunition.

shahril96 avatar Sep 18 '17 00:09 shahril96

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 avatar Oct 09 '17 17:10 vonclutch

@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 avatar Oct 13 '17 21:10 Mershl

@Mershl It does the trick for me ( ubuntu 17.10/GNOME Shell 3.26.1 ) you have to switch every windows with your mouse.

vonclutch avatar Oct 14 '17 04:10 vonclutch

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 avatar Oct 19 '17 17:10 Mershl

@Mershl Any idea when the update will be push ? :D

vonclutch avatar Oct 22 '17 17:10 vonclutch

@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.

Mershl avatar Oct 22 '17 17:10 Mershl

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.

raenii avatar Mar 14 '19 22:03 raenii

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.

breadland avatar Mar 16 '19 21:03 breadland

Still happening today in csgo, the fix i found is not using xorg or wayland while im playing

Ulisses1478 avatar Mar 26 '19 22:03 Ulisses1478

I updated the bug description to reflect the fact that it occurs in Xorg as well.

kerrickstaley avatar Mar 28 '19 22:03 kerrickstaley

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.

breadland avatar Apr 07 '19 02:04 breadland

This was fixed on ubuntu 19.04 for me at least

Ulisses1478 avatar Apr 19 '19 19:04 Ulisses1478

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.

breadland avatar Apr 19 '19 21:04 breadland

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.

IncPlusPlus avatar Dec 28 '19 05:12 IncPlusPlus

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/

kisak-valve avatar Feb 27 '20 15:02 kisak-valve

This is still happening in GNOME 3.34 on Wayland.

Tooniis avatar Mar 10 '20 11:03 Tooniis

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.

Tr4pSec avatar Sep 05 '20 23:09 Tr4pSec

This is still happening to me on Gnome 42 with Wayland on Fedora 36.

LeoDog896 avatar Aug 13 '22 22:08 LeoDog896