glzr-io / glazewm

GlazeWM is a tiling window manager for Windows inspired by i3wm.
GNU General Public License v3.0
6.62k stars 194 forks source link

[Bug] Fullscreen in games alt tabs automatically when handled #699

Open danfbfern opened 2 months ago

danfbfern commented 2 months ago

Describe the bug

I am experiencing an intermittent issue where games do not stay visible for consistent durations when opened. The game windows may disappear every few seconds, with the timing varying (e.g., 5 seconds, 50 seconds, or immediately upon reopening).

Setup

Workspace: Dedicated 'Gaming' workspace for all gaming-related applications (e.g., Steam, Battle.net) Mode: 'Gaming' mode configured similarly to the default 'pause' mode on the default config, to prevent accidental clicks.

The games are configured as follows:

- commands: ['move --workspace Gaming', 'set-floating', 'set-fullscreen'] #or even without the 'set-floating'
  match:
     - window_process: { regex: '<name_of_the_game>' }

After moving a game to the Gaming workspace, it is set to floating and full-screen mode. However, the full-screen is not native, and I must manually use Alt+Enter to achieve true full-screen, which is not really that big of a problem honestly.

Issue

Despite the configuration, games do not maintain visibility consistently. Only adding the game to the ignore list results in the alt-tabbing issue to be fixed, but this should be needed and being able to move the game to the right workspace with no issues is a must.

Expected Behaviour

Games should remain consistently visible in the Gaming workspace without the need for frequent manual adjustments like Alt+Enter. The window should not need to be re-tiled or disappear intermittently.

Request

I seek a solution or workaround that allows games to remain stable and visible in the Gaming workspace, adhering to the specified configurations without the current visibility issues.

Reproduction

Stack trace or error logs (if applicable)

No response

Version number

3.1.1

lars-berger commented 2 months ago

Despite the configuration, games do not maintain visibility consistently.

Is focus being switched to a different workspace? I'm not sure what's meant by 'maintaining visibility' in this case

Does it happen when a notification window pops up from a different workspace? e.g. a Steam or Discord message popup

danfbfern commented 2 months ago

Is focus being switched to a different workspace? I'm not sure what's meant by 'maintaining visibility' in this case

Does it happen when a notification window pops up from a different workspace? e.g. a Steam or Discord message popup

What I mean with 'maintaining visibility' is the fact that it alt tabs from the full screen (the native full screen used in games, don't know the name compared to a border full screen), so it can't maintain the window visible.

It does not happen triggered by something, even with the other apps closed, it happens and alt-tabs to the desktop if no other app is opened to show.

Currently I removed the commands: ['move --workspace Gaming', 'set-floating', 'set-fullscreen'] #or even without the 'set-floating' completely because its impossible to play a game like that. Is is reproducible ? I'd be glad to help with more clarification if needed