Skip to content

Keyboard focus remains in previous window when changing focus away from popup menus #8629

Open
@Spiffyk

Description

@Spiffyk
  • Sway Version: 1.10.1 (but has been happening for a while, but I could not pinpoint how to reproduce it reliably)

  • Debug Log:

  • Configuration File:

  • Description:

    • Open some windows
    • Open a GTK or Qt6 app with rollout menus, like context menus or a menu bar, e.g. nautilus
    • Open a menu (e.g. right-click a file in nautilus)
    • Without closing the menu beforehand, focus a different window (either click or hover, depending on config)
    • Try typing something
    • Notice that instead of the newly focused window, you are still typing into the previously focused one, even though the focus has changed visually

This is especially troublesome when a password dialog pops up while a context menu is open, because one may leak their password somewhere (I had a few close calls).

EDIT: Permalink to config on a commit hash instead of master.

EDIT 2: Encountered with Qt6 as well, so not GTK-specific

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions