Bug 479873 - On X11, notifications are squished when using a multi-screen setup with the 0,0 point not located on any screens
Summary: On X11, notifications are squished when using a multi-screen setup with the 0...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.92.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: multiscreen, qt6, X11-only
: 493655 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-15 23:04 UTC by jvyden
Modified: 2025-02-24 17:58 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
3 notifications in a vertical strip, the top two of which are squashed. (420.54 KB, image/png)
2024-01-15 23:04 UTC, jvyden
Details
My unique display configuration. (91.93 KB, image/png)
2024-01-19 03:32 UTC, jvyden
Details
Stacked layout test (23.35 KB, image/png)
2024-01-20 03:34 UTC, jvyden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jvyden 2024-01-15 23:04:17 UTC
Created attachment 164936 [details]
3 notifications in a vertical strip, the top two of which are squashed.

This happens on complete random, but I can get it to happen fairly consistently nonetheless. Interestingly, some can appear next to perfectly normal screenshots ad shown in my attached screenshot.

STEPS TO REPRODUCE
1. Trigger a notification In this case, I use the 'bell' notification in Konsole, as it's easy trigger by simply hitting Backspace in bash.
2. Repeat until squashed notification appears.

OBSERVED RESULT
The width of the notification is halved and the notification is taller. It's offset from the side of the screen in a strange way as if it's still filling some equivalent to a <div>.

EXPECTED RESULT
The notification's width is completely normal and the popup is aligned properly.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.7.0
Kernel Version: 6.7.0-zen3-1-zen (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1080/PCIe/SSE2
Manufacturer: ASUS
Comment 1 Nate Graham 2024-01-17 01:22:54 UTC
Can you comment on your screen arrangement/settings/scale factor/etc?

Does it happen on Wayland?

Does it happen when using the default Breeze Plasma theme?
Comment 2 jvyden 2024-01-19 03:32:42 UTC
Created attachment 165028 [details]
My unique display configuration.

It does indeed happen under Plasma's default theme.

My display configuration is a bit unique (2 identical monitors, along with a third monitor above my primary monitor in a weird position), so I've attached a screenshot of the Display Configuration in System Settings.

I tried playing around with it and I've noticed that disabling my top monitor resolves the issue. Moving the monitor to be aligned to the right of my primary monitor (bottom left) does not resolve the issue. Disabling my right monitor has no effect.

I'll test Wayland shortly to be sure, although I don't recall it happening on there.
Comment 3 Nate Graham 2024-01-19 18:04:31 UTC
Thanks. The screen arrangement does indeed seem to be a factor here. If you move the primary monitor to be under the other two, does it still happen?

And yeah, testing on Wayland would be appreciated. Note that multimonitor is significantly more robust there and we really recommend using the Wayland session if you use multiple monitors, especially if you have more than 2 and use a creative arrangement. :)
Comment 4 jvyden 2024-01-20 03:34:57 UTC
Created attachment 165061 [details]
Stacked layout test

Nope, just tested and I can't reproduce at all under Wayland. It seems like this issue is scoped entirely under X11.

As a side-note since we're on the topic, I actually switch between Wayland and X11 pretty frequently. Both have their drawbacks regarding performance vs. desktop use. I tend to use X11 for when I need low latency in things like osu! and Wayland for desktop use where that's not necessary and the compositor is a lot smoother but has higher latency.

I unfortunately have a NVIDIA GPU in my computer, so neither Wayland or X11 has ever been perfect for me due to their drivers, haha

Anyways, getting back on topic, did you mean a fully stacked layout like the one in the attachment? I was also able to reproduce consistently under X11 with that layout.
Comment 5 Nate Graham 2024-01-23 19:16:43 UTC
Thanks. So it looks like this issue only happens on X11 when the 0,0 coordinate point on the giant invisible rectangle containing all screens isn't on one of those screens.

Any chance you're able to see if this happened in Plasma 5 with the same screen setup as well?
Comment 6 jvyden 2024-01-23 19:31:39 UTC
> Any chance you're able to see if this happened in Plasma 5 with the same
> screen setup as well?

Hmm, lets see... I've been using Plasma under both X11 and Wayland for roughly 3 years now and I don't recall this ever happening, and it definitely would have annoyed me enough to open up a bug report before. Safe to say this is definitely something new to KDE 6.

Unless you're asking me to test the stacked layout? In that case I'm not sure about downgrading my system in such a significant manner like that, especially given kde-testing on Arch requires you to use core-testing and extra-testing which includes KF6 packages. I can try to reproduce on KDE Neon's live installer if you don't mind me bringing another distro into the scope of this issue.
Comment 7 Nate Graham 2024-01-23 19:41:48 UTC
Ah, if it's a burden, don't bother.

If this worked fine in 5 and broke in 6, it seems like something in KWin changed to make that happen, since the notification code has been relatively static during the 5->6 transition.

However note that multi-monitor on X11 is not much of a priority right now as it's all kind of fundamentally broken by design due to mismatches between what the X11 server provides and the level of customizability we allow in Plasma. So to be honest I'm doubtful of this being investigated and fixed. I'm glad it works properly on Wayland, at least!
Comment 8 Vlad Zahorodnii 2024-01-25 12:57:30 UTC
Is the issue reproducible if you disable compositing?

also is the issue reproducible if you stop kwin_x11? systemctl stop --user-unit plasma-kwin_x11
Comment 9 jvyden 2024-01-27 03:51:29 UTC
(In reply to Vlad Zahorodnii from comment #8)
> Is the issue reproducible if you disable compositing?

Yep, reproduces exactly as described when compositing is disabled.

> also is the issue reproducible if you stop kwin_x11? systemctl stop
> --user-unit plasma-kwin_x11

The notifications appear to get 'cropped' in a different-looking way when kwin isn't running, but it's definitely the same issue.
Comment 10 Vlad Zahorodnii 2024-01-29 12:15:24 UTC
If the issue is reproducible even when running without kwin_x11, then it seems like a plasmashell bug.
Comment 11 Marco Martin 2024-09-26 14:12:25 UTC
*** Bug 493655 has been marked as a duplicate of this bug. ***
Comment 12 TraceyC 2025-02-24 17:58:28 UTC
Adding the x11-only keyword