Bug 482076 - Clipboard no longer appears under mouse cursor
Summary: Clipboard no longer appears under mouse cursor
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard (show other bugs)
Version: 6.0.5
Platform: NixOS Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6, regression
: 482466 483618 486155 488058 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-29 18:50 UTC by Naxdy
Modified: 2024-06-13 12:33 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.1.0


Attachments
Screenshot with clipboard popup bellow screen. (174.17 KB, image/png)
2024-03-03 00:03 UTC, Sèlom ATSOU
Details
View of the popup on barre desktop. (679.38 KB, image/png)
2024-03-03 00:05 UTC, Sèlom ATSOU
Details
Clipboard popup with Kickoff lunched (136.38 KB, image/png)
2024-03-03 00:07 UTC, Sèlom ATSOU
Details
Kwin rule for workarround (119.41 KB, image/png)
2024-03-25 20:41 UTC, Sèlom ATSOU
Details
Demo of the Klipper window opening in the wrong positions (3.53 MB, video/mp4)
2024-04-12 06:11 UTC, mydarkstar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Naxdy 2024-02-29 18:50:51 UTC
SUMMARY
Since at least 6.0, the clipboard no longer appears under the mouse cursor when brought up with Meta+V, but instead appears in the center of the screen.


STEPS TO REPRODUCE
1. Bring up clipboard history with Meta+V

OBSERVED RESULT
Clipboard history appears at the center of the screen

EXPECTED RESULT
Clipboard history appears under mouse cursor

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
-
Comment 1 guimarcalsilva 2024-02-29 23:27:11 UTC
Can confirm
Comment 2 Nate Graham 2024-03-01 19:35:38 UTC
Is this happening with a multi-monitor arrangement? I can't reproduce the issue with one one screen.
Comment 3 Naxdy 2024-03-01 19:36:51 UTC
Happens for me on multiple devices, both multi and single monitor.
Comment 4 Sèlom ATSOU 2024-03-02 23:46:17 UTC
(In reply to Nate Graham from comment #2)
> Is this happening with a multi-monitor arrangement? I can't reproduce the
> issue with one one screen.

It is happening on my laptop with no external screen.
Comment 5 Sèlom ATSOU 2024-03-02 23:55:17 UTC
It is happen right now on KDE Neon 6. The system has the latest updates.

If I am on the desktop the popup appears at cursor location.
It sometimes also appear at cursor location when I lunch kickoff (start menu).

When I am on a window of an application, it's left-right corner is put at the center. --- PART OF the popup goes bellow the SCREEN.

Does someone know a starting point of a fix ? It is a daily companion.
Comment 6 Sèlom ATSOU 2024-03-03 00:03:55 UTC
Created attachment 166322 [details]
Screenshot with clipboard popup bellow screen.

This file show clip board popup with part of its content not displayed.
Comment 7 Sèlom ATSOU 2024-03-03 00:05:58 UTC
Created attachment 166323 [details]
View of the popup on barre desktop.

On barre Desktop, all the clipboard content is visible.
Comment 8 Sèlom ATSOU 2024-03-03 00:07:20 UTC
Created attachment 166324 [details]
Clipboard popup with Kickoff lunched

View of the clipboard popup when kickoff is lunched.
Comment 9 Nate Graham 2024-03-04 20:15:44 UTC
Is everyone affected using X11, maybe? Trying to find the points of commonality.

FWIW, I can't reproduce it on the following system:
- Wayland
- Fractional scale factor
- 1 or 2 screens
- Qt 6.6.2
Comment 10 Naxdy 2024-03-04 20:19:23 UTC
Don't know about the others, but I for one haven't touched X11 since 5.27 ¯\_(ツ)_/¯
Comment 11 Patrick Silva 2024-03-04 20:21:04 UTC
I can reproduce on Wayland.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 12 Nicolas Fella 2024-03-05 17:47:34 UTC
*** Bug 482466 has been marked as a duplicate of this bug. ***
Comment 13 Sèlom ATSOU 2024-03-05 19:35:56 UTC
(In reply to Nate Graham from comment #9)
> Is everyone affected using X11, maybe? Trying to find the points of
> commonality.
> 
> FWIW, I can't reproduce it on the following system:
> - Wayland
> - Fractional scale factor
> - 1 or 2 screens
> - Qt 6.6.2

I am using Wayland.
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-21-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: HP
Product Name: HP Laptop 15-bs0xx
Comment 14 Sèlom ATSOU 2024-03-05 21:07:02 UTC
(In reply to Nate Graham from comment #9)
> Is everyone affected using X11, maybe? Trying to find the points of
> commonality.
> 
> FWIW, I can't reproduce it on the following system:
> - Wayland
> - Fractional scale factor
> - 1 or 2 screens
> - Qt 6.6.2

Reproduced on KDE Neon Live ISO neon-user-20240304-2101.iso
Comment 15 Sèlom ATSOU 2024-03-05 21:17:46 UTC
The issue does not appear on X11.
I am on the same system.

Please, those on Wayland, you can logout, select Wayland and login. Then see if the issue appears again.
Comment 16 Sèlom ATSOU 2024-03-05 21:18:49 UTC
(In reply to Sèlom ATSOU from comment #15)
> The issue does not appear on X11.
> I am on the same system.
> 
> Please, those on Wayland, you can logout, select Wayland and login. Then see
> if the issue appears again.

Please, those on Wayland, you can logout, select X11 and login. Then see  if the issue appears again.
Comment 17 medin 2024-03-07 22:49:04 UTC
Repro with Plasma 6.0.1/Wayland on laptop without any external monitor.
Comment 18 fanzhuyifan 2024-03-15 04:11:03 UTC
*** Bug 483618 has been marked as a duplicate of this bug. ***
Comment 19 twoage528 2024-03-18 07:08:29 UTC
can reproduce it on wayland
Comment 20 Ovear 2024-03-18 11:52:40 UTC
I'm experiencing the same issue after upgrading to KDE Plasma 6.

In my experience, this fueature only work occasionally (maybe 10% if the time) when no windows are displayed on the desktop. 

However, as soon as any program is launched or a window is shown, the clipboard popup gets stuck in the center of the screen, as shown in the attached screenshot titled "Screenshot with clipboard popup bellow screen".

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-9500T CPU @ 2.20GHz
Memory: 62.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Comment 21 Sèlom ATSOU 2024-03-21 15:02:16 UTC
This has worsen.
I did an update using apt yesterday and the clipboard no more works.
I mean:
- click on icon in system tray to access clipboard setting: nothing appear. I expect a windows to be opened.
- clipboard always shows `Clipboard is empty` whenever you click on it icon.
- Shortcut Meta+V do not display clipboard history as usual.

In logs, I fond that `klipper` is no more available. I looked on the system and find no executable with that name.
```
Mar 20 07:27:07 vrbench systemd-xdg-autostart-generator[1232]: Exec binary 'blueman-applet' does not exist: No such file or directory
Mar 20 07:27:07 vrbench systemd-xdg-autostart-generator[1232]: Not generating service for XDG autostart app-blueman@autostart.service, error parsing Exec= line: No such file or directory
Mar 20 07:27:07 vrbench systemd-xdg-autostart-generator[1232]: Exec binary 'klipper' does not exist: No such file or directory
Mar 20 07:27:07 vrbench systemd-xdg-autostart-generator[1232]: Not generating service for XDG autostart app-klipper@autostart.service, error parsing Exec= line: No such file or directory
```

Please @nate may you guide me to find and resolve the issue ?

For those who are interested to in finding the cause of this, klipper code is available at https://invent.kde.org/plasma/plasma-workspace/-/tree/master/klipper?ref_type=heads
Comment 22 Sèlom ATSOU 2024-03-21 15:05:56 UTC
Details of the system.
----
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.10-1-liquorix-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: HP
Product Name: HP Laptop 15-bs0xx
System Version: Type1ProductConfigId
Comment 23 Naxdy 2024-03-23 16:00:33 UTC
For those still having this issue and waiting for a fix, you can work around this under Wayland, by manually creating a window rule for KWin. To do this, open up System Settings, then navigate to Window Management -> Window Rules and click on "Add New". For description, enter anything you want, like "clipboard workaround". For "Window class (application)" put "plasmashell org.kde.plasmashell" (exactly like this, without quotes), and select "Exact Match". Leave "Window types" as "Normal Window".

Then, at the bottom click on "Add Property". Search for "Initial placement" and set this to "Force" and "Under Mouse". This will cause all windows spawned by plasmashell to appear under your mouse cursor, this includes the clipboard, but also any "configure" windows you might open, e.g. by clicking to configure a widget.

Remember to remove this rule whenever the issue is fixed on KDE side though (unless you're fine with any plasmashell window appearing under your cursor, which you very well might be).
Comment 24 Sèlom ATSOU 2024-03-25 20:41:47 UTC
Created attachment 167760 [details]
Kwin rule for workarround

I followed Naxdy's workaround. But the pop up window get sometimes under the display.
I changed the action to display at up-left corner.
The attachment show the rule.
Comment 25 mydarkstar 2024-04-12 06:11:38 UTC
Created attachment 168412 [details]
Demo of the Klipper window opening in the wrong positions

I can reproduce the issue on the latest KDE neon Testing (20240402) via the all-defaults Live ISO as well.
Please view my attached demo video.

STEPS TO REPRODUCE
1. Boot KDE neon Testing Live ISO
2. Copy any text into the clipboard
3. Open a window OR panel widget
4. Press your assigned shortcut for "Show Clipboard Items at Mouse Position" (default: Meta + V)

OBSERVED RESULT
The Klipper window is NOT spawned at the mouse position.
Instead, the top-left of the window is ALWAYS spawned in the center of the screen.
Or, for when a panel widget is open, at another weird spot.

EXPECTED RESULT
The Klipper window should always spawn at the mouse position, like it did previously and on X11.

SOFTWARE/OS VERSIONS
Linux: KDE neon Testing 20240402
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
- This works fine on X11. I can confirm that ONLY Wayland is affected.
- The issue can be reproduced very quickly on an all-defaults KDE neon VM.
Comment 26 Patrick Silva 2024-04-26 15:39:25 UTC
*** Bug 486155 has been marked as a duplicate of this bug. ***
Comment 27 Zach Saunders 2024-06-06 22:44:52 UTC
*** Bug 488058 has been marked as a duplicate of this bug. ***
Comment 28 David Redondo 2024-06-11 11:59:09 UTC
I could reproduce it with the latest Neon user and testing isos but cannot reproduce on my own neon unstable machine.
Comment 29 Andrea Ippolito 2024-06-11 12:11:41 UTC
Still happening on my distro running KDE Plasma 6.0.5 (version updated in the bug info)
Comment 30 Nate Graham 2024-06-12 15:40:40 UTC
All of this would suggest it's fixed in the upcoming Plasma 6.1 release. Please feel free to re-open the bug report if it still happens on that version or later though. Thanks!
Comment 31 Andrea Ippolito 2024-06-12 19:47:50 UTC
I tested this with the latest available build of Neon Unstable available for download today (build 202405...), and indeed couldn't reproduce.
Looking forward to 6.1.0 now 😄
Comment 32 David Redondo 2024-06-13 12:33:13 UTC
I debugged this both in a neon unstable and testing VM.

It was indeed bugged in 6.0 due to a change in KWin and fixed afterwards. Which should be included in 6.1 but what puzzled me was that it was happening in the neon testing VM (6.1). It turns out that Neon testing did not have a 6.1 KWin yet but still 6.0.5. I've contacted the Neon developers about it.