[Help] Can't restore a fullscreen game after alt-tabbing, and Windows have white border in borderless fullscreen
from Dettweiler42@lemmy.dbzer0.com to linux@lemmy.ml on 18 May 04:58
https://lemmy.dbzer0.com/post/44550530

I recently installed Linux Mint Cinnamon on a laptop, and I’m having a two-sided issue. Web searches have yielded no solution. I’m also very new to Linux.

Problem 1: When alt-tabbing out of a fullscreen application (at this moment, Helldivers 2), the application will minimize, but I cannot restore it. It will appear for roughly half a second, and then re-minimize. I can hear the game still running in the background.

I have tried alt-tab, super+number, and right-click>restore. None seem to work.
I have tried disabling thumbnails for windows, no fix.
Disabling effects, no fix.

Problem 2: As a workaround for problem 1, I tried borderless fullscreen. It works, but there is a white, 1 px border around the screen. I have tried changing themes, no fix. Same thing with disabling effects. I do like the Mint-Y theme, but there’s no longer an option to change window borders, from what I’ve researched. Again, trying a different theme didn’t seem to get rid of the white border.

Please help.

#linux

threaded - newest

vegetvs@kbin.earth on 18 May 05:21 next collapse

From the description it feels like you're not exiting full screen mode within the game before switching to other applications. Try the same key combination you use to enter full screen mode again, before switching.

Dettweiler42@lemmy.dbzer0.com on 18 May 05:53 collapse

I just gave that a shot. When I come back and re-fullscreen, the game minimizes and goes back to the problem state.

thebardingreen@lemmy.starlightkel.xyz on 18 May 05:47 next collapse

Something very similar happens to me in some Windows games on Mint with Cinnamon, especially older games running using Proton. I’ve had it happen recently with Age of Mythology and Fallout New Vegas.

Unfortunately, I don’t have the answer for you, but I can tell you you’re not alone.

Grass@sh.itjust.works on 18 May 05:53 next collapse

does the desktop environment add the 1px border? I can’t remember which ones I used that had that but snapping windows to full or to the split regions or even manually to each other would leave a gap until I found a really obscure setting for the border gap.

Dettweiler42@lemmy.dbzer0.com on 18 May 06:08 collapse

From what I’ve looked up, it does. However, at some point the ability to change border settings in Themes was removed.

Dettweiler42@lemmy.dbzer0.com on 18 May 06:10 next collapse

An extra detail: I’m using 2 monitors. When playing with borderless window and moving the mouse rapidly, I’ve had my mouse escape the focused window a few times and start clicking stuff on my desktop.

tetris11@lemmy.ml on 18 May 07:28 next collapse

I get this a lot when playing Sims4 in Awesome. The window just ups and vanishes if you tab to desktop.

Solution:

wmctrl -a sims -b toggle fullscreen

linux.die.net/man/1/wmctrl

Dettweiler42@lemmy.dbzer0.com on 18 May 08:07 collapse

It does not seem to work for me. After inputting

wmctrl -a helldivers -b toggle,fullscreen

I just get a quick black flicker and it goes back to minimized. I also tried changing the win argument to :SELECT: from the documentation you linked, but it still doesn’t pull up the window and keep it there.

The command does work for other windows, for clarification.

tetris11@lemmy.ml on 18 May 10:58 collapse

huh. What about -b add,fullscreen, and keep spamming it in a for loop

Dettweiler42@lemmy.dbzer0.com on 18 May 16:42 next collapse

I’ll give that a shot tonight and let you know

Dettweiler42@lemmy.dbzer0.com on 19 May 02:56 collapse

It didn’t seem to have an effect, unfortunately.

ReversalHatchery@beehaw.org on 18 May 12:28 collapse

I have also experienced your first problem. It’s probably that the game bugs out in some way. apparently gamescope helps to fix it, bit I wasn’t able to get it to work on an nvidia based system.

Dettweiler42@lemmy.dbzer0.com on 18 May 16:44 next collapse

I’ll take a look into that. This laptop is using one of those hybrid Nvidia GPUs, so it took me a bit to work out the performance issues at first.

Dettweiler42@lemmy.dbzer0.com on 19 May 02:56 collapse

Unfortunately, it looks like gamescope just isn’t going to work for my system.