Bug 428379 - System tray popup keeps switching monitor after clicking actions in expandable list items
Summary: System tray popup keeps switching monitor after clicking actions in expandabl...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices (show other bugs)
Version: 5.20.1
Platform: Neon Linux
: VHI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 428419 428824 428906 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-28 09:32 UTC by krzmbrzl
Modified: 2020-11-09 20:17 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.20.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description krzmbrzl 2020-10-28 09:32:23 UTC
Note: I don't actually think this is related to dolphin but I don't know which category to choose, so I sticked with Dolphin as it is at least involved in the process.

SUMMARY

When I plug in a USB drive (USB 3.0) I get a notification about it in the system tray (small USB icon to the bottom right).

In there I can choose to "Open with File Manager" which will successfully open the respective drive in Dolphin. At the same time though the notification window starts hopping from being open on my left screen to being open on my right screen periodically every ~0.5s. While doing so it is always steeling focus from whatever other window I had selected in between.

It can be closed my clicking "safely remove device" (aka by unmounting the stick).

Closing Dolphin doesn't seem to have an influence on the hopping.

The same behavior can be triggered by attempting to "download photos with Gwenview".

STEPS TO REPRODUCE
1. Plug in USB
2a. Choose "Open with File Manager" from USB notification
2b. Choose "Download photos with Gwenview" from USB notification


SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.1
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0
Kernel Version: 5.4.0-52-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4770 CPU @ 3.40GHz
Memory: 7,7 GiB of RAM
Graphics Processor: NVE4

ADDITIONAL INFORMATION
- I am using a dual monitor setup (2x 1920x1080) with "extend to the left" option.
- It doesn't matter which monitor I access the notification
- I have experienced a UI freeze shortly after removing the USB drive while the hopping still occured. The freeze happened a bit delayed though (a couple of minutes) so I am not 100% sure this is related. It happened more than once though
- My USB actually has 4 partitions on it:
  1. NTFS (7.8 GB)
  2. ext4 (31 GB)
  3. Fat32 (Linux live image, 5 GB)
  4. Unallocated: 14 GB
Comment 1 Nate Graham 2020-10-28 18:52:17 UTC
Odd.
Comment 2 Nate Graham 2020-10-29 19:35:12 UTC
*** Bug 428419 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2020-10-29 19:36:32 UTC
Duplicate bug report includes a hilarious/terrifying video worthy of https://www.reddit.com/r/softwaregore/:

https://www.youtube.com/watch?v=nt5mQWs85iw
Comment 4 Konrad Materka 2020-10-30 22:15:30 UTC
I will check that.
Comment 5 Konrad Materka 2020-10-30 23:35:29 UTC
Nate, can you take a look? I check 5.19.5 and seems it was working fine, on 5.20 it has this strange behavior. I guess it is connected to "processLastDevice" but can't pinpoint the regression - there was a big rework between 5.19 and 5.20
Comment 6 Nate Graham 2020-10-30 23:36:56 UTC
Will investigate.
Comment 7 Nate Graham 2020-11-08 09:45:38 UTC
*** Bug 428824 has been marked as a duplicate of this bug. ***
Comment 8 Konrad Materka 2020-11-08 10:38:41 UTC
I have a fix for that, MR in 10 minutes :)
Comment 9 Bug Janitor Service 2020-11-08 10:43:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/431
Comment 10 Konrad Materka 2020-11-09 15:40:56 UTC
Git commit 56cc74ecdf2b3194b61cdab997447b78acdb6d24 by Konrad Materka.
Committed on 09/11/2020 at 07:45.
Pushed by ngraham into branch 'master'.

[applets/devicenotifier] Fix regression with expand

This fixes regresion, when plugging in a removable media or phone the removable
media widget toggles on and off if two or more of them are present.

M  +4    -4    applets/devicenotifier/package/contents/ui/devicenotifier.qml

https://invent.kde.org/plasma/plasma-workspace/commit/56cc74ecdf2b3194b61cdab997447b78acdb6d24
Comment 11 Nate Graham 2020-11-09 16:07:32 UTC
Git commit 640082f0623279e0aacdf599a38ed0ebf9be04f8 by Nate Graham, on behalf of Konrad Materka.
Committed on 09/11/2020 at 16:07.
Pushed by ngraham into branch 'Plasma/5.20'.

[applets/devicenotifier] Fix regression with expand

This fixes regresion, when plugging in a removable media or phone the removable
media widget toggles on and off if two or more of them are present.


(cherry picked from commit 56cc74ecdf2b3194b61cdab997447b78acdb6d24)

M  +4    -4    applets/devicenotifier/package/contents/ui/devicenotifier.qml

https://invent.kde.org/plasma/plasma-workspace/commit/640082f0623279e0aacdf599a38ed0ebf9be04f8
Comment 12 Nate Graham 2020-11-09 16:10:30 UTC
Thanks so much for fixing this, Konrad!
Comment 13 Carlos P 2020-11-09 20:17:02 UTC
*** Bug 428906 has been marked as a duplicate of this bug. ***