Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aerospace seems unable to control the main Steam window? #193

Closed
ELLIOTTCABLE opened this issue Mar 28, 2024 · 2 comments
Closed

Aerospace seems unable to control the main Steam window? #193

ELLIOTTCABLE opened this issue Mar 28, 2024 · 2 comments

Comments

@ELLIOTTCABLE
Copy link

I'm new to Aerospace, but one of the very first times I launch it, it's immediately unable to control half of the windows I have open.

Some of those I am unsurprised by. The Console.app interface by Universal Audio for their Apollo consoles (download), for instance, is famously poorly-behaved, with a window that's utterly inaccessible and forces itself into strange shapes and configurations without any user-input. But others, like the Steam gaming store, I was more surprised by.

This particular Issue is about Steam specifically; but while I'm at it - is there any known workaround for applications like this that are difficult to control? Elevating the process or anything like that?

@nikitabobko
Copy link
Owner

I think what you faced is that Steam window is floating, you can make it tiled by running layout tiling command.

The reason why it's floated is because AeroSpace dialog heuristics detected it as a dialog. All windows without a fullscreen button are floated by default (except for some hardcoded exceptions). Steam shows a maximize button instead of a fullscreen button.

except for some hardcoded exceptions

Actually, Steam was part of these hardcoded exceptions. AeroSpace specifically tiled windows with com.valvesoftware.steam bundle ID

app.id != "com.valvesoftware.steam" && // Steam doesn't show fullscreen button

I rechecked Steam app and I see that they changed bundled ID to com.valvesoftware.steam.helper

I have two things to say:

  1. It makes me sad applications as big as Steam just change their bundle ID. It's not the way developers are supposed to use bundle ID :(
  2. I think I would like to keep Steam floating and I will remove the hardcoded outdated Steam bundle ID. Steam tends to show these stupid "special offers" dialogs on startup which would normally get detected as dialogs only because they don't have a fullscreen button. But hardcoding Steam bundle ID will make "special offers" dialogs tiling

@nikitabobko
Copy link
Owner

you can make it tiled by running layout tiling command

If you want to tile Steam windows by default you can use on-window-detected callback

[[on-window-detected]]
if.app-id = 'com.valvesoftware.steam.helper'
run = 'layout tiling'

nikitabobko added a commit that referenced this issue Apr 1, 2024
#193

1. Float Steam by default. Steam tends to show stupid "special offers"
   dialog
2. They changed the bundled ID recently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants