Skip to content

Tray menu not activated by shortcut key unless copyq main window is focused #3325

Closed

Description

@tprotopopescu

Describe the bug

The tray menu is not activated using a shortcut key unless the copyq main window is the focused window, since updating to kde 6.5.2. If another window is focused the shortcut key does nothing.

To Reproduce

  1. Install KDE 6.5.2
  2. Set a keyboard shortcut for the tray menu (setting in copyq does not work for me, so I set a custom shortcut in kde for the 'copyq menu' command)
  3. Trigger the shortcut over any focused window that is not copyq - the tray menu does not appear
  4. Trigger it over the copyq main window, or when it is focused, menu appears

Expected behavior

The tray menu should always appear when the shortcut key is pressed. Worked in kde 6.4.10

Screenshots

Version, OS and Environment

CopyQ Clipboard Manager 13.0.0
Qt: 6.10.0
KNotifications: 6.19.0
Compiler: GCC
Arch: x86_64-little_endian-lp64

Operating System: openSUSE Tumbleweed-Slowroll 20251106
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-1.0.12.sr20251001-default (64-bit)
Graphics Platform: Wayland

Installed from: obs://build.opensuse.org/home:AndnoVember due to #3276

Additional context

The log has this whenever I press the shortcut key:

[2025-11-20 16:04:03.869] Warning : [qt.qpa.wayland] Failed to create grabbing popup. Ensure popup QWidgetWindow(0x55852567d280, name="TrayMenuWindow") has a transientParent set and that parent window has received input.

Running copyq with QT_QPA_PLATFORM=xcb is a workaround

Activity

  1. paranoidi commented on Nov 28, 2025

    @paranoidi

    Perhaps related, perhaps not. I am on Mint Cinnamon 6.4.8 and pressing Meta-V shortcut to show the tray menu does not work. However pressing V for the second time while holding meta does show the menu correctly ...

  2. GibreelAbdullah commented on Dec 29, 2025

    @GibreelAbdullah

    Same issue in wayland.

    Warning: [qt.qpa.wayland] Failed to create grabbing popup. Ensure popup QWidgetWindow(0x557ace0496a0, name="TrayMenuWindow") has a transientParent set and that parent window has received input.

  3. Chealer commented on Dec 31, 2025

    @Chealer
    Contributor

    @tprotopopescu: Can you clarify what you mean by "setting in copyq does not work for me"?
    Were you already using Wayland before your update?

  4. added
    Qt bugCaused by a bug in Qt framework
    WaylandRelates to Wayland protocol
    on Jan 19, 2026
  5. hluk commented on Jan 19, 2026

    @hluk
    Owner

    Yeah, this is a bug in Qt. See also: #3160

  6. zany130 commented on Mar 28, 2026

    @zany130

    I thought reverting the flatpak runtime version back to 6.8 fixed this? Im running into this again...

  7. hluk commented on Mar 29, 2026

    @hluk
    Owner

    I thought reverting the flatpak runtime version back to 6.8 fixed this? Im running into this again...

    Oh, I guess QTBUG-139921 also affects Qt 6.10.

    Not sure if going back to an old Qt is good solution. I think https://flathub.org started showing a warning about it.

    Is this problem only in KDE?

    I see the same issue with non-flatpak app on KDE Plasma 6.6.3 with Qt 6.10.2 (on Fedora 43):

    [qt.qpa.wayland] Failed to create grabbing popup. Ensure popup  QWidgetWindow(0x116caed0, name="TrayMenuWindow") has a transientParent set and that parent window has received input.
    
  8. reopened this on Mar 29, 2026
  9. added a commit that references this issue on Mar 29, 2026
    8ac5c21
  10. hluk commented on Mar 29, 2026

    @hluk
    Owner

    Workaround implemented in #3511.

  11. added 2 commits that reference this issue on Mar 29, 2026
    80cb669
    6b63401
  12. 2 remaining items

  13. added 9 commits that reference this issue on Mar 29, 2026
    2a7fbbd
    fdbe891
    895848e
    e642ab5
    cffbd0f
    589523f
    d11fc61
    624d9b1
    6385cc6
  14. Chealer commented on Mar 29, 2026

    @Chealer
    Contributor

    If you are affected and want to report that, please indicate:

    1. Your CopyQ version (as usual)
    2. Your display server
    3. Your desktop environment (or window manager)
    4. Your Qt version
    5. If possible, whether you can reproduce QTBUG-139921. And if you are affected, please vote for it.

    License

  15. zany130 commented on Mar 31, 2026

    @zany130

    Workaround implemented in #3511.

    Still running into the same issue
    copyq version

    flatpak run com.github.hluk.copyq -v
    CopyQ Clipboard Manager 14.0.0
    Qt: 6.10.2
    KNotifications: 6.22.0
    Compiler: GCC
    Arch: x86_64-little_endian-lp64
    OS: KDE Flatpak runtime
    Audio: miniaudio 0.11.25
    

    system info

    Operating System: Bazzite 43
    KDE Plasma Version: 6.6.3
    KDE Frameworks Version: 6.24.0
    Qt Version: 6.10.2
    Kernel Version: 6.17.7-ba29.fc43.x86_64 (64-bit)
    Graphics Platform: Wayland
    Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
    Memory: 32 GiB of RAM (30.9 GiB usable)
    Graphics Processor: AMD Radeon RX 7900 GRE
    Manufacturer: ASRock
    Product Name: B650M Pro RS WiFi
    

    EDIT: actually looks like the fix wasn't pushed to the latest FlatHub release yet?

  16. hluk commented on Apr 1, 2026

    @hluk
    Owner

    actually looks like the fix wasn't pushed to the latest FlatHub release yet?

    @zany130 The fix has not been released yet.

    Can you test the build from flathub/com.github.hluk.copyq#86 (the install command is mentioned in the comments)?

    flatpak install --user https://dl.flathub.org/build-repo/270592/com.github.hluk.copyq.flatpakref
    
  17. zany130 commented on Apr 1, 2026

    @zany130

    Yup works perfectly!

  18. Chealer commented on Apr 24, 2026

    @Chealer
    Contributor

    @paranoidi wrote:

    Perhaps related, perhaps not. I am on Mint Cinnamon 6.4.8 and pressing Meta-V shortcut to show the tray menu does not work. However pressing V for the second time while holding meta does show the menu correctly ...

    For that, see #1267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Qt bugCaused by a bug in Qt frameworkWaylandRelates to Wayland protocolbug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions