Bug 377970 - [Wayland] Notifications are often misplaced
Summary: [Wayland] Notifications are often misplaced
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-wayland (show other bugs)
Version: 5.9.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-23 09:43 UTC by tromzy
Modified: 2017-09-08 00:32 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Notifications are misplaced (1.48 MB, image/png)
2017-03-23 09:43 UTC, tromzy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tromzy 2017-03-23 09:43:48 UTC
Created attachment 104696 [details]
Notifications are misplaced

On Wayland in Plasma 5.9.4 (and every 5.9.x version), the notifications are often at the middle of the screen. I used the "notify-send" command to illustrate the problem and took a screenshot with Spectacle (screenshot on Wayland, yeah !). Sometimes though, they are at their correct position.

Intel modesetting driver on Arch Linux.
Comment 1 Germano Massullo 2017-04-12 13:21:49 UTC
I confirm on 5.9.4 too
Comment 2 tromzy 2017-05-16 12:45:31 UTC
The bug still occurs on Plasma 5.10 beta.
Comment 3 Patrick Silva 2017-05-19 17:38:26 UTC
Confirmed on plasma 5.10 beta built against qt 5.9 beta 3 on Arch.
Comment 4 tromzy 2017-05-31 08:44:37 UTC
The bug still happens on Plasma 5.10 (not beta, final), whether it is with Qt 5.9 RC1 or with Qt 5.8 on Arch Linux.
Comment 5 Kai Uwe Broulik 2017-05-31 09:04:26 UTC
I tried to fix that with a patch https://phabricator.kde.org/D3209

(but given how delicate notification code is and the fact that I added a timer which is usually bad I didn't push it yet)
Comment 6 Szymon Łągiewka 2017-06-09 20:16:39 UTC
I'm curious how the patch will change what we now. For me it's now:
1. First nofitication shows just like in the attachment.
2. All the rest will pop up in the upper-left corner.

Tested with notify-send. What's more important - when I'm sending notifications from Konsole/Yakuake, the focus is stolen in favour of the notification. Is it related or deserves another bug report? 

What's also interesting is that KRunner seems to behave in a similar manner - instead of being in the middle of the top part of the screen - it's in the upper-left corner.
Comment 7 Szymon Łągiewka 2017-06-09 21:26:03 UTC
Turns out the notification position is also interrupted by i.e. Yakuake. Effect: http://imgur.com/a/QIbME.

If Yakuake was on 100% height, the notification would be in the interrupted upper-left corner position.
Comment 8 Ghost 2017-06-12 13:20:47 UTC
(In reply to Szymon Łągiewka from comment #6)
> I'm curious how the patch will change what we now. For me it's now:
> 1. First nofitication shows just like in the attachment.
> 2. All the rest will pop up in the upper-left corner.
> 
> Tested with notify-send. What's more important - when I'm sending
> notifications from Konsole/Yakuake, the focus is stolen in favour of the
> notification. Is it related or deserves another bug report? 
> 
> What's also interesting is that KRunner seems to behave in a similar manner
> - instead of being in the middle of the top part of the screen - it's in the
> upper-left corner.

I experience the same bug as Szymon does upon updating the KDE Plasma extra packages on Arch today [the version of those packages is: 5.35.0-1].

Despite it was originally believed to affect Wayland only, the issue is also present on X11.
I use Yakuake as the main terminal emulator too, and I can confirm that the bug is present with Yakuake both turned off and on.
Comment 9 Pranav Sharma 2017-06-13 22:21:52 UTC
I am on KDE neon, x11, and I am getting this bug as well. Some times the notification is in the correct position, but then the next ones are in the top left corner. Only observer after kde frameworks 5.35.
Comment 10 tromzy 2017-06-14 07:27:07 UTC
(In reply to Pranav Sharma from comment #9)
> I am on KDE neon, x11, and I am getting this bug as well. Some times the
> notification is in the correct position, but then the next ones are in the
> top left corner. Only observer after kde frameworks 5.35.

I get this as well on X11 since Frameworks 5.35, but it might be a different issue.
Comment 11 Dominik Klementowski 2017-06-16 10:57:01 UTC
(In reply to Pranav Sharma from comment #9)
> I am on KDE neon, x11, and I am getting this bug as well. Some times the
> notification is in the correct position, but then the next ones are in the
> top left corner. Only observer after kde frameworks 5.35.

Exactly the same for me. Full HD display, no scale, X11 session.
Newest packages on Arch (5.10.2). For me it was ok on 5.10.1
Comment 12 tromzy 2017-06-19 14:34:12 UTC
There is an update on this bug, but it is not totally fixed (better, but not fixed) : now, when a tooltip pops up, it still appears at the center of the screen (like on the screenshot I provided), but it rapidly moves to the correct position.

This is still not good, as it should pop directly at the correct position.
Comment 13 Patrick Silva 2017-06-21 18:16:30 UTC
I can confirm this bug under X11 session on Arch, plasma 5.10.2, qt 5.9.
Sometimes notification from dolphin about finished copy/move files appears on top left corner.
Comment 14 Piotr 2017-08-20 12:33:29 UTC
I have the same problem too. Notifications pop up some time in left upper corner. KRunner sometimes pops up there too.
Qt: 5.7.1
KDE Frameworks: 5.35.0
kf5-config: 1.0
plasmashell 5.10.2
Running X11 on Maui 17.06 (spin-off of Ubuntu ans Neon)
Comment 15 Alexander Mentyu 2017-08-21 07:57:51 UTC
Cannot reproduce this bug in:

Distribution: KDE neon Developer Edition Unstable Branches live iso 20170813
KDE Plasma Version: 5.10.90
KDE Frameworks Version: 5.37.0
Qt Version: 5.9.1
Kernel Version: 4.10.0-32-generic
OS Type: 64-bit
XWayland: 1.19.3-3
Wayland: 1.14.0-1
Wayland Protocols: 1.10-1
Driver: xf86-video-intel 1:2.99.917+779+g2100efa1-2 
Video card: Intel 4500MHD

Tried Dolphin copying, notify-send from Konsole, launching KRunner - all multple times.
Comment 16 Christoph Feck 2017-09-08 00:32:57 UTC
For Wayland: This is fixed with https://commits.kde.org/plasma-framework/fd2e850156ac7aa9c9dc2cf46652b2a1f1fc3a07 in KF5 5.35.0.

For X11: See bug 381130 (fixed in KF5 5.37.0).

If you can still reproduce using these versions, please add a comment or reopen the bug.