Skip to content

Deeplink closes with wrong keymap on niri, causing keyboard malfunction #994

@rucnyz

Description

@rucnyz

System information

  • Version: v0.19.0 (643fbac)
  • Build info: GCC 15.2.1 - Release
  • Provenance: aur
  • OS: Arch Linux -
  • QT Platform: wayland
  • DE: niri/Wayland

Describe the bug

After using vicinae deeplink 'vicinae://extensions/vicinae/clipboard/history', the
keyboard partially stops working - backspace and Ctrl+W don't work, but typing still works.
Clicking another window and back restores normal keyboard function.

To Reproduce

  1. Open a terminal (kitty)
  2. Run wev in another window to monitor keyboard events
  3. run vicinae deeplink 'vicinae://extensions/vicinae/clipboard/history'
  4. Select an item from clipboard history
  5. Try pressing backspace or Ctrl+W in the terminal - they don't work
  6. Click another window, then click back to terminal - keyboard works again

Expected behavior

Keyboard should work normally after vicinae closes.

Additional context

Using wev to debug:

  • After vicinae closes: keymap: format: 1 (xkb v1), size: 1440 (wrong)
  • After clicking another window: keymap: format: 1 (xkb v1), size: 34206 (correct)

It appears vicinae sends an incorrect/minimal keymap when closing its layer-shell surface
on niri.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions