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

Notifications render in the wrong place with multiple monitors

Open tatokis opened this issue 3 years ago • 20 comments

Your system information

  • Steam client version (build number or date): 1682634349
  • Distribution (e.g. Ubuntu): Ubuntu 20.04
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

Notification coordinates are handled incorrectly. This started with the latest beta update which overhauls the UI and notifications. It seems to calculate the coordinates based on the primary monitor, but then proceeds to render using absolute coordinates.

This is a standard xrandr multiple monitor setup.

Apologies for the massive screenshot, but it's the only way to showcase the issue.

steam_notification

Steps for reproducing this issue:

  1. Have a multiple monitor setup
  2. Start Steam
  3. Trigger a notification

tatokis avatar Apr 28 '23 01:04 tatokis

Same for me.

rKsanu2MMYvypWePtQWM avatar Apr 28 '23 18:04 rKsanu2MMYvypWePtQWM

Yep, seems it. After taking a screenshot of the issue as well, I tried just adjusting the position of the primary monitor in an image-editing tool. By only adjusting the Y-coordinate, the position of the notification ended up being exactly where you expect it to. Is position calculated from the top-left position?

before/after image-manipulation screenshots; 1 2

JacobSvenningsen avatar Apr 29 '23 07:04 JacobSvenningsen

This issue occurs in a Plasma 5.27 Wayland session as well.

caseif avatar May 01 '23 00:05 caseif

Can confirm. Plasma 5.27 wayland on fedora 37. Running steam beta.

Metal-spoon avatar May 02 '23 23:05 Metal-spoon

Can confirm it's happening here too.

I'm on Arch, kernel 6.2.9, using i3 4.22 as the WM.

Here's my monitor setup:

Screen 0: minimum 8 x 8, current 4480 x 1440, maximum 32767 x 32767
DP-2 connected 1920x1080+0+180 (normal left inverted right x axis y axis) 543mm x 302mm
   1920x1080     60.00 + 165.00*  143.98   119.98    84.90    59.94    50.00  
DP-4 connected primary 2560x1440+1920+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440    165.00*+ 144.01   120.00    99.95    59.95  

lucasreis1 avatar May 03 '23 15:05 lucasreis1

can also confirm that it happens for me

for me the notifications appear slightly off-center to the left on my middle (primary) screen (directly above the task-bar instead of like other users somewhere in the middle of the screen) and not the bottom right corner like the old client did

steam version: 1683253302

Display Layout Screenshot & System Information

display_layout

Operating System: Manjaro Linux KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.104.0 Qt Version: 5.15.8 Kernel Version: 6.2.12-1-MANJARO (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor Memory: 15.5 GiB of RAM Graphics Processor: AMD Radeon RX Vega Manufacturer: ASUS

hasezoey avatar May 06 '23 08:05 hasezoey

can also confirm that it happens for me

for me the notifications appear slightly off-center to the left on my middle (primary) screen (directly above the task-bar instead of like other users somewhere in the middle of the screen) and not the bottom right corner like the old client did

steam version: 1683253302 Display Layout Screenshot & System Information

Can confirm this happens to me as well on X11 using i3 with the same monitor setup(1080p,1440p,1080p).

Notification renders like it's trying to render for one of my 1080p monitors which causes it to be to the left of center on my main monitor(1440p).

steam version: 1683314987

nuggs avatar May 09 '23 15:05 nuggs

Also happening under GNOME 44 Wayland on Manjaro. Seems to be rendering on my 4K monitor in the location it should be if it was rendering on my main 1440p monitor.

DeedleFake avatar May 09 '23 15:05 DeedleFake

Hi,

Same here with sway and arch linux.

I have three monitors, and notifications appear to my left monitor.

xrandr is configured with my middle screen as primary.

DP-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 530mm x 300mm
   1920x1080     59.96*+
DP-2 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 530mm x 300mm
   1920x1080     59.96*+
HDMI-A-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 530mm x 300mm
   1920x1080     59.96*+

joan31 avatar May 09 '23 18:05 joan31

Same here, on Steam Version: 1684372665

OS: Fedora release 38 (Thirty Eight) x86_64
Kernel: 6.2.15-100.fc36.x86_64 
Resolution: 1920x1080, 1920x1080, 1920x1080
DE: Plasma 5.27.4 
WM: KWin 
[pointy@pointy ~]$ xrandr --listactivemonitors
Monitors: 3
 0: +*DP-0 1920/521x1080/293+1920+0  DP-0
 1: +DP-2 1920/521x1080/293+0+0  DP-2
 2: +DP-4 1920/521x1080/293+3840+0  DP-4

example

pointydev avatar May 18 '23 12:05 pointydev

Same for me, they are always shown on the bottom right of the left monitor, instead of the primary right monitor. Steam Version: 1684535786

System info: https://gist.github.com/NoXPhasma/750786dfa16923f9037c9b7f25493faf

NoXPhasma avatar May 23 '23 16:05 NoXPhasma

On a related note, on my laptop with only one monitor, the notifications show up floating a bit above the bottom of the screen. I'm using GNOME, so my guess is that the notifications are hard-coded to compensate for the bottom bar on KDE. Since GNOME has nothing at the bottom, it just floats.

DeedleFake avatar May 23 '23 16:05 DeedleFake

Latest beta seems to have fixed this on my end: image

Despite this bulletpoint, it seems it wasn't actually only fixing it for Windows 10:

  • Fixed toasts positioning correctly on windows when the task bar is moved to the top of the screen (Windows 10).

JacobSvenningsen avatar Jun 13 '23 15:06 JacobSvenningsen

Fixed for me, too, both the GNOME problem and the multi-monitor problem.

DeedleFake avatar Jun 14 '23 13:06 DeedleFake

Can also confirm that the behaviour I previously experienced is fixed, tested on Steam 1686630523 using a virtually identical system configuration.

pointydev avatar Jun 14 '23 13:06 pointydev

Same for me, fixed.

NoXPhasma avatar Jun 14 '23 13:06 NoXPhasma

Not sure if this should be a separate issue, but my notifications are still misplaced. I assume it's because I'm using 2.0x scaling and the notifications' dimensions are being scaled, but not the position. My client is version 1686779606 (Wed, Jun 14 14:18 UTC -08:00)

image

d07434b2c08f avatar Jun 15 '23 19:06 d07434b2c08f

can confirm that for me it is also fixed (Manjaro KDE Plasma Wayland) (same display config as in https://github.com/ValveSoftware/steam-for-linux/issues/9374#issuecomment-1537092220)

KDE Versions

Operating System: Manjaro Linux KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.3.5-2-MANJARO (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor Memory: 15.5 GiB of RAM Graphics Processor: AMD Radeon RX Vega Manufacturer: ASUS

hasezoey avatar Jun 17 '23 12:06 hasezoey

After some more time has passed, this doesn't seem to be completely fixed. Notifications seem to work about 90% of the time, but every once in a while a notification just shows up in the middle of one of my monitors somewhere. It doesn't seem to be related to differing monitor resolutions anymore, but I'm not entirely sure as it doesn't happen consistently and the location seems to change a bit.

DeedleFake avatar Jul 07 '23 15:07 DeedleFake

Hello @DeedleFake, please open a new issue report so that your follow up issue can be tracked properly.

kisak-valve avatar Jul 07 '23 15:07 kisak-valve