ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
784 stars 69 forks source link

CS2 fullscreen is offset by taskbar #3274

Open jnvsor opened 1 year ago

jnvsor commented 1 year ago

Your system information

Please describe your issue in as much detail as possible:

On xfce, the CS2 window starts offset by the taskbar. The taskbar is visible at the top of the screen and the game window extends past the bottom of the screen.

This can be fixed by changing display mode between fullscreen/fullscreen windowed but will happen again on next run

Edit for clarity: This only occurs if the game is started in fullscreen. If started in fullscreen windowed this won't occur. If changed from fullscreen and back again and applied, it will be fixed until the next run

djsiropchik commented 5 months ago

Not sure how relevant this is to anyone anymore, but this issue is due to KDE and not cs. Easy fix: Issue: After alt-tabbing in and out of the game the task bar remains visible. Solution: With the game window active, hit alt-F3 Select 'More Actions' Select 'Configure Special Application Settings...' In the config window that opens, click ' + Add Property' at bottom left. Scroll down to and select 'Fullscreen'. The property has now been added under 'Size & Position' In its row, select 'Force' and 'Yes' Apply, OK. The game should now be permanently Fullscreen, even if you alt-tab.

Thx for recommendation I'll try it. But @zivkovic is right. No other game has this problem, so it's something wrong from the devs side. And so sad that so popular and banal game still has this bug for a long time

josefc12 commented 5 months ago

I understand where you are coming from, but for now (for me atleast) this is the only game that does this. No other game has this problem, therefor the only real solution would be for CS2 devs to fix this. If the issue occurred on all games, then yes, KDE would be the problem, but alas it is not. Your solution is more or less only a "cheap fix". Thank you anyway.

Thx for recommendation I'll try it. But @zivkovic is right. No other game has this problem, so it's something wrong from the devs side. And so sad that so popular and banal game still has this bug for a long time

I'm really not sure about that, because it doesn't happen on Windows or GNOME, only KDE. Yeah maybe it's something with the game that doesn't account for how KDE works or something, you might just be right. Let me know if it worked for you.

kjarosh commented 5 months ago

I'm really not sure about that, because it doesn't happen on Windows or GNOME, only KDE. Yeah maybe it's something with the game that doesn't account for how KDE works or something, you might just be right.

I don't know how you came into conclusion that it happens only in KDE, but that's not true. Just look at the comments above. I personally can reproduce it today in GNOME and people are saying it doesn't work in Xfce either.

The fact that you can change settings in KDE so that it does work does not mean that it's KDE's fault, it just means that KDE is highly customizable.

gregor3000 commented 5 months ago

when you start application at full screen it is supposed to be running in full screen. all other games are like that.

one issue is because in KDE (and now probably on other DE as well) the system recognizes full screen and turns off/reduces system usage of GPU and CPU for system to dedicate more resources to the full screen application. but if app is not running full screen DE will continue to run with some bells and whistles on which may impact overall performance or just performance of the app.

josefc12 commented 5 months ago

Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3274#issuecomment-2103918914

I never put the blame on KDE, I said the issue is at KDE, which is the perspective I'd look at my code if I was the dev. I'd look for a solution that would account for how KDE works - the issue would be with KDE. I never said KDE doesn't work well or not as intended. How can I reproduce it on GNOME? I had no issues on Debian or Ubuntu using GNOME. Happened to me only now with Manjaro and KDE.

Whatever is interacting with KDE here has an obvious problem with it, whether it be SDL or the game itself. That's my whole speculation nothing more, nothing less.

kjarosh commented 5 months ago

How can I reproduce it on GNOME? I had no issues on Debian or Ubuntu using GNOME. Happened to me only now with Manjaro and KDE.

I use Fedora 39 with native Steam, Nvidia drivers, X11. The same thing happened in Fedora 38 as per my first comment.

polluxau commented 5 months ago

cant reproduce this anymore on arch kde plasma with latest update

kjarosh commented 5 months ago

Unfortunately still happens for me on Fedora 39 GNOME

vini-nu commented 5 months ago

To bypass the issue I use:

image

KDE Plasma 6.0.4; I use this window rule to move CS2 to secondary virtual desktop and force it to fullscreen.

CS2 Launch options: %command% -threads 16 -fullscreen -w 4096 -h 2160 +engine_low_latency_sleep_after_client_tick true +fps_max 240 -nojoy -high -fullscreen +mat_disable_fancy_blending 1 -forcenovsync +r_dynamic 0 +mat_queue_mode 2 -softparticlesdefaultoff -vulkan -refresh 120 -forcenovsync

achanana commented 5 months ago

This issue started suddenly for me on Linux 6.9.1-arch1-2 GNOME 46 using X11. If I add -fullscreen as an option the window is not longer there but the GNOME top bar still appears. Switching from windowed to full screen in CS2 settings does nothing.

Amusingdock25 commented 5 months ago

Latest update fixed this issue for me. Running ubuntu 22.04.

Thank you so much for the work devs, it makes my day to see an update on the linux build <3

bakgwailo commented 5 months ago

Still present on latest Arch w/ latest KDE 6.0 and also the 6.1 Beta.

XCroatoanX commented 5 months ago

Still present on latest Arch w/ latest KDE 6.0 and also the 6.1 Beta.

Fixed for me though in 6.1 Beta

bakgwailo commented 5 months ago

Tested a bit more on Plasma 6.1 Beta on Arch.

Fullscreen still has the taskbar forced over the window.

Fullscreen windowed mode works fine.

Starting in Fullscreen mode, and switching to 'Fullscreen Windowed' hides the task bar. Switching back to 'Fullscreen' after this also keeps the taskbar hidden.

gamertyke commented 3 months ago

This is not fixed for me. I have to do the Fullscreen Windowed/Fullscreen dance every time I start the game.

returnofblank commented 2 months ago

You can solve this using gamescope, but that's more of a bandage than an actual solution.

ExpandingShapes commented 1 month ago

Tested a bit more on Plasma 6.1 Beta on Arch.

Fullscreen still has the taskbar forced over the window.

Fullscreen windowed mode works fine.

Starting in Fullscreen mode, and switching to 'Fullscreen Windowed' hides the task bar. Switching back to 'Fullscreen' after this also keeps the taskbar hidden.

I confirm, the situation is still the same.

samuk10 commented 1 month ago

this fix for me! https://steamcommunity.com/sharedfiles/filedetails/?id=3113667547