Bug 527326 - The Clipboard Popup no longer gets initial focus
Summary: The Clipboard Popup no longer gets initial focus
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.8.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-18 06:02 UTC by Stephane
Modified: 2026-10-19 19:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane 2026-10-18 06:02:49 UTC
DESCRIPTION
When opening the clipboard popup (with Meta+V by default), the window does not get focused.

STEPS TO REPRODUCE
1. Press Meta+V to open the clipboard

OBSERVED RESULT
The clipboard opens, but it doesn't have focus. The previously active window stays active. So, for instance, pressing "Arrow Down" to go down the clipboard items list goes down in the "previously active" (and still active) window.

EXPECTED RESULT
The clipboard should automatically get focus upon opening, allowing to interact with it without mouse interaction.
That was the observed behaviour before 6.8.0

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.8.0
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0

ADDITIONAL INFORMATION
- The behaviour may depend on the Window focus settings. Here are mine (from ~/.config/kwinrc)

[Windows]
AutoRaise=true
AutoRaiseInterval=450
DelayFocusInterval=200
ElectricBorderTiling=false
FocusPolicy=FocusFollowsMouse
FocusStealingPreventionLevel=2
RollOverDesktops=true

- A work-around pending a fix is to create a new Window Rule as follows (~/.config/kwinrulesrc)
Description=Fix Clibpoard Popup bug
Enabled=false
acceptfocus=true
acceptfocusrule=2
fsplevelrule=2
title=Clipboard Popup
titlematch=1
wmclass=org.kde.plasmashell
wmclassmatch=1
Comment 1 Bug Janitor Service 2026-10-19 11:10:00 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7250
Comment 2 cwo 2026-10-19 14:54:23 UTC
Git commit 236fc2eafa40a6b09224ae257bff98c85b573a2b by Christoph Wolk.
Committed on 19/10/2026 at 12:06.
Pushed by cwo into branch 'master'.

klipper: request activation when showing popup

When showing the popup, it will only receive focus if focus stealing
prevention is set to low; on medium or higher it will not. (It worked in
6.7, but I could not identify the change that broke it, as old enough
commits in p-w no longer compile. The recent changes to focus behavior
seem unrelated, the problem happens before them).

In any case, it seems reasonable enough to explicitly request activation
when showing the popup. This fixes the issue in all levels of focus
stealing prevention.
FIXED-IN: 6.8.1

M  +1    -0    klipper/klipperpopup.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/236fc2eafa40a6b09224ae257bff98c85b573a2b
Comment 3 cwo 2026-10-19 19:40:54 UTC
Git commit 514bd32650ec565b00bd8fc53fd577756aab374a by Christoph Wolk.
Committed on 19/10/2026 at 14:54.
Pushed by cwo into branch 'Plasma/6.8'.

klipper: request activation when showing popup

When showing the popup, it will only receive focus if focus stealing
prevention is set to low; on medium or higher it will not. (It worked in
6.7, but I could not identify the change that broke it, as old enough
commits in p-w no longer compile. The recent changes to focus behavior
seem unrelated, the problem happens before them).

In any case, it seems reasonable enough to explicitly request activation
when showing the popup. This fixes the issue in all levels of focus
stealing prevention.
FIXED-IN: 6.8.1


(cherry picked from commit 236fc2eafa40a6b09224ae257bff98c85b573a2b)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

M  +1    -0    klipper/klipperpopup.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/514bd32650ec565b00bd8fc53fd577756aab374a