Bug 486155 - Wayland: Clipboard popup always opens in the middle of the screen instead of at mouse position
Summary: Wayland: Clipboard popup always opens in the middle of the screen instead of ...
Status: RESOLVED DUPLICATE of bug 482076
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard (show other bugs)
Version: 6.0.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-26 12:30 UTC by Andrea Ippolito
Modified: 2024-04-26 15:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
clipboard badly positioned (372.85 KB, image/png)
2024-04-26 12:30 UTC, Andrea Ippolito
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Ippolito 2024-04-26 12:30:02 UTC
Created attachment 168920 [details]
clipboard badly positioned

Clipboard set to open at mouse position via global shortcut Meta+V.

Cursor near the top-left corner of the screen. Invoke shortcut.

Expected: clipboard opens at mouse position
Actual: clipboard opens in the middle of the screen

As a side effect, this also makes it impossible to pick items from the bottom of the list, or activate the entry that expands into an additional column in order to show more clipboard contents (I keep my clipboard history to something large, like 9999 items)

Screenshot attached for reference

I use a dual monitor setup, laptop display is scaled at 130% while external display is unscaled.

The problem is reproducible on both.

While trying to take the screenshot I repeatedly invoked the shortcut, and from time to time the popup would appear closer to the cursor or even at the cursor, but this definitely the exception, rather than the rule.

At times I also noticed another strange behavior, where the popup would open in the middle while the cursor was far away from the middle of the screen, yet moving the mouse slightly downwards would start highlighting items in the clipboard popup! Although the cursor was nowhere near the popup itself. As if there was a weird offset compensating for the distance between the cursor and the popup.

I'll try to post a screencast if I manage to reproduce it.
Comment 1 Andrea Ippolito 2024-04-26 12:32:48 UTC
(In reply to Andrea Ippolito from comment #0)
> Created attachment 168920 [details]
> clipboard badly positioned
> 
> Clipboard set to open at mouse position via global shortcut Meta+V.
> 
> Cursor near the top-left corner of the screen. Invoke shortcut.
> 
> Expected: clipboard opens at mouse position
> Actual: clipboard opens in the middle of the screen
> 
> As a side effect, this also makes it impossible to pick items from the
> bottom of the list, or activate the entry that expands into an additional
> column in order to show more clipboard contents (I keep my clipboard history
> to something large, like 9999 items)
> 
> Screenshot attached for reference
> 
> I use a dual monitor setup, laptop display is scaled at 130% while external
> display is unscaled.
> 
> The problem is reproducible on both.
> 
> While trying to take the screenshot I repeatedly invoked the shortcut, and
> from time to time the popup would appear closer to the cursor or even at the
> cursor, but this definitely the exception, rather than the rule.
> 
> At times I also noticed another strange behavior, where the popup would open
> in the middle while the cursor was far away from the middle of the screen,
> yet moving the mouse slightly downwards would start highlighting items in
> the clipboard popup! Although the cursor was nowhere near the popup itself.
> As if there was a weird offset compensating for the distance between the
> cursor and the popup.
> 
> I'll try to post a screencast if I manage to reproduce it.

Somehow Spectacle failed to capture the cursor in that screenshot, although the option to do so was enabled (another bug, I guess).

But it was near the "Shortcuts" icon in the left panel of the Configure popup, so quite far from where the clipboard popup appeared.
Comment 2 Patrick Silva 2024-04-26 15:39:25 UTC

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