steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Steam toast notifications are displaying at the center of the screen

Open hjpaul7 opened this issue 1 year ago • 5 comments

Your system information

  • Steam client version (build number or date): 1721173382

  • Distribution (e.g. Ubuntu): Arch

  • Opted into Steam client beta?: Yes

  • Have you checked for system updates?: Yes

  • Steam Logs: steam-logs.tar.gz

  • GPU: Nvidia

Please describe your issue in as much detail as possible:

After latest beta, the Steam toast popup notifications while outside of BPM/Game appear dead center of the screen. I use Hyprland WM but it hasn't been updated/changed so this appears to be a steam bug?

Toasts are in the correct spot once in BPM or game.

Steps for reproducing this issue:

  1. Get notification

steam-notifications2

hjpaul7 avatar Aug 05 '24 00:08 hjpaul7

I dont think this is steam fault, read hyprland wiki section is "Window Rules" Or report it to hyprland git, also update your hyprland

Maybe the window title or "class" changed and is detecting the notification as a normal window and you rules make all new windows to be on the center of the screen

rurigk avatar Aug 05 '24 21:08 rurigk

I dont think this is steam fault, read hyprland wiki section is "Window Rules" Or report it to hyprland git, also update your hyprland

Hyprland hasn't been updated, Steam has. So this is probably coming from Steam as it was displaying correctly before.

Maybe the window title or "class" changed

#11151

hjpaul7 avatar Aug 05 '24 21:08 hjpaul7

Yes but keep in mind that the windows give the DE, WM or Compositor a hint of its size and position The window tells i want to be this size and at this position, in wayland it's the decision of the compositor to take or not the hints of the window

In this case for me in plasma i dont have this problem because plasma decided to take the hints

I used Hyprland before and i had this type of issues with a lot of apps because Hyprland may not respect the hints or just ignore it but its kinda its nature, its a tiling WM at the end of the day

https://github.com/hyprwm/Hyprland/issues/3025

rurigk avatar Aug 05 '24 21:08 rurigk

Replying to https://github.com/ValveSoftware/steam-for-linux/issues/11159#issuecomment-2269964023

I'll poke around in the Hyprland discord and see if anyone else is experiencing it.

hjpaul7 avatar Aug 05 '24 21:08 hjpaul7

For others coming across this thread, for tiling window managers like hyprland you can add a window rule to your configuration to position toasts where you want them. You need to know what the window properties are to write matchers for the rule. After some experimentation I found that the App ID of all Steam windows is steam, and toasts have window titles of the form notificationtoasts_20_desktop, where the number in the title seems to increment for each toast.

I put this rule in my Niri config to position toasts where I want them:

window-rule {
    match app-id="steam" title="^notificationtoasts"
    open-focused false
    default-floating-position x=8 y=8 relative-to="bottom-right"
    block-out-from "screencast"
}

hallettj avatar Nov 30 '25 21:11 hallettj