Bug 451811 - After screen unplug, notifications show in wrong place
Summary: After screen unplug, notifications show in wrong place
Status: RESOLVED DUPLICATE of bug 448579
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-multiscreen (show other bugs)
Version: 5.24.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-23 03:05 UTC by Ralf Jung
Modified: 2022-03-27 16:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A screenshot demonstrating the wrong position of the notification (25.10 KB, image/png)
2022-03-23 03:05 UTC, Ralf Jung
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Jung 2022-03-23 03:05:45 UTC
Created attachment 147679 [details]
A screenshot demonstrating the wrong position of the notification

SUMMARY
After a screen got unplugged while the machine is suspended, Plasma shows notifications in the wrong spot.


STEPS TO REPRODUCE
1. Have an external screen connected, with the internal screen being set up "to the right of" the external one
2. Put machine to sleep, unplug external screen, resume machine
3. Make a notification happen

OBSERVED RESULT

The notification shows in the wrong spot, it partially clips outside of the visible area and overlaps with the toolbar. (See attached screenshot.)

EXPECTED RESULT

The notification should show where it usually does: in the bottom right corner, *above* the toolbar.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.0-4-amd64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1505M v5 @ 2.80GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P530

ADDITIONAL INFORMATION
This seems to be a zombie bug that came back: https://bugs.kde.org/show_bug.cgi?id=373379.
This is a regression, the same sequence of actions worked with before the latest KDE/Plasma update (previous I was on 5.22 or 5.23).

It's not just notifications, other things like KRunner also show in the wrong spot.

Connecting and disconnecting another external screen while the machine runs fixes the problem. So it seems like a bug was introduced recently where Plasma fails to notice screen geometry changes in some situations related to system suspend/resume.
Comment 1 Nate Graham 2022-03-27 16:33:58 UTC

*** This bug has been marked as a duplicate of bug 451898 ***
Comment 2 Nate Graham 2022-03-27 16:34:46 UTC

*** This bug has been marked as a duplicate of bug 448579 ***