sway icon indicating copy to clipboard operation
sway copied to clipboard

Sway sends wl_keyboard modifiers event before sending keymap

Open tmccombs opened this issue 9 months ago • 5 comments

  • Sway Version:

    • sway version 1.9
  • Description:

See https://github.com/emersion/slurp/issues/123 and https://github.com/emersion/slurp/pull/124

Basically slurp segfaults in some situations because it gets an event about key modifiers (wl_keyboard.modifiers) before it has received a keymap (wl_keyboard.keymap). Since it hasn't received a keymap yet, it doesn't know how to handle the modifiers event.

The following is an exceprt from the WL_DEBUG output for slurp:


[ 132030.182] [email protected](26178, wl_surface@3, array[0])
[ 132030.186] [email protected](26179, 0, 0, 0, 0)
zsh: segmentation fault (core dumped)  WAYLAND_DEBUG=1 slurp

no keymap event is received prior to this.

What should probably happens is sway makes sure that a keymap has been sent to the application before sending the enter event.

tmccombs avatar May 21 '24 05:05 tmccombs