Skip to content

wlr-layer-shell (bemenu, wmenu) not grabbing focus in multi-output configuration when bar mode is hide #8655

@gustafla

Description

@gustafla

Sway Version:

{
  "human_readable": "1.10.1",
  "variant": "sway",
  "major": 1,
  "minor": 10,
  "patch": 1,
  "loaded_config_file_name": "\/home\/gustafla\/.config\/sway\/config"
}
bemenu v0.6.23
wmenu 0.1.9

Debug Log:
https://gist.github.com/gustafla/ad660e6010ef3f33caa17c4e09397378

If you see the following in the log, it's from me hovering the mouse to the unresponsive bemenu and closing it with esc without choosing a program to launch:

[
  {
    "success": false,
    "parse_error": true,
    "error": "Invalid exec command (expected at least 1 argument, got 0)"
  }
]

In other words the above is an expected error.

Configuration File:
https://github.com/gustafla/dotfiles/blob/f47e55386c66609882b4870ea2d51a7cb43337ee/.config/sway/config

Description:

When my outputs are configured as shown below, wmenu and bemenu launched via a keyboard binding aren't getting focused and won't take any keyboard input on one of the monitors (usually the lower left monitor). This may be related to #8560 or not. The menu starts to respond after moving the mouse over it, and keeps responding even after hovering back out of it.

The problem also does not occur when:

  • Running bemenu-run from a terminal, only from a bindsym exec
  • One of the three displays is disabled (running in dual monitor configuration)

I tried both Vulkan and GLES2 renderers, both have the same issue. I also tried sway version 1.10.0, it had the same issue.

Image

get_outputs: https://gist.github.com/gustafla/06d3455f32b86e733e1dbf5cd3053b97

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions