Skip to content

Bug: Clipboard popup won't close on outside click #74

Description

@Brainitech

Hey @GunawanAhmad , thanks again for the keyboard navigation feature! I've been testing it on the dev branch and it feels great.
I did notice one small issue, however. When the clipboard popup is open, clicking anywhere outside of it no longer closes the window. It currently only closes when pressing the Esc key.
Because we introduced explicit keyboard focus, Wayland/Quickshell is likely trapping the focus. Based on Brain_Shell's architecture, this is usually caused by one of two things:

  1. Focus Mode: If ClipboardPopup.qml uses keyboardFocus: WlrKeyboardFocus.Exclusive, it will prevent outside clicks from registering. It needs to be WlrKeyboardFocus.OnDemand.
  2. Missing Active Check: We might need to add/restore a window focus listener at the root of the popup (e.g., onActiveChanged: if (!active) Popups.clipboardOpen = false) to catch when Hyprland focuses a different window.

Would you be open to taking a look and submitting a quick follow-up PR targeting the dev branch to patch this?
Let me know! If you are too busy right now, no worries at all just let me know and I can jump in and add the fix to dev before the next release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions