sway/sway
Kenny Levinsen 6b900bab60 seat: Set keyboard if seat keyboard is NULL
sway sends wl_keyboard.enter on seat focus change and when a keyboard
active on a seat is configured. If all keyboards are removed and a
keyboard is added back without changing the focused client, no new
notify event would be sent despite having keyboard focus. This could
lead to key events without notify, which is a protocol violation.

As a quick fix, when configuring a keyboard on a seat where no keyboard
is currently active, activate the keyboard so that a focused surface
will receive a notify event.

Regressed by: e1b268af98
Closes: https://github.com/swaywm/sway/issues/7330

(cherry picked from commit 1ade0ce753)
2022-12-19 10:39:53 +01:00
..
commands commands/move: Warp cursor after moving workspace to another output 2022-12-19 10:39:53 +01:00
config Support libinput's 1.21 new dwtp option 2022-10-30 10:56:34 +01:00
desktop launcher: export X startup ids and use them for workspace matching 2022-11-26 10:29:59 +01:00
input seat: Set keyboard if seat keyboard is NULL 2022-12-19 10:39:53 +01:00
tree view: associate launch contexts with views 2022-11-26 10:29:59 +01:00
commands.c Allocate enough space for `cmd_results->error` 2022-06-16 09:32:44 +02:00
config.c Reject font values that are invalid for pango 2022-07-01 13:05:58 +02:00
criteria.c criteria: be lenient on window_role and instance too 2022-12-12 11:26:11 +01:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c Support libinput's 1.21 new dwtp option 2022-10-30 10:56:34 +01:00
ipc-server.c sway: add non-desktop outputs to json when running `swaymsg -t get_outputs` 2022-09-19 07:26:45 -04:00
lock.c lock: fix crash on output destroy 2022-11-11 17:01:50 +01:00
main.c fix: remove redundant empty statement in main.c 2022-07-12 16:07:51 +02:00
meson.build root: move the workspace matching code to its own file 2022-11-26 10:29:59 +01:00
realtime.c realtime: request SCHED_RR using CAP_SYS_NICE 2022-05-18 11:20:17 +02:00
server.c launcher: initialize launcher_ctxs once on startup 2022-11-26 10:29:59 +01:00
sway-bar.5.scd man: update Pango font description URL 2021-08-04 02:15:04 +02:00
sway-input.5.scd Support libinput's 1.21 new dwtp option 2022-10-30 10:56:34 +01:00
sway-ipc.7.scd Support libinput's 1.21 new dwtp option 2022-10-30 10:56:34 +01:00
sway-output.5.scd sway-output.5: improve display of parameter 2022-08-08 08:03:27 +02:00
sway.1.scd man: update maintainer 2021-01-08 09:33:51 +01:00
sway.5.scd man: Add XWayland information 2022-09-25 20:05:16 +02:00
swaynag.c Bump RLIMIT_NOFILE 2021-10-30 08:19:35 -06:00
xdg_activation_v1.c launcher: export xdga tokens and use them for workspace matching 2022-11-26 10:29:59 +01:00
xdg_decoration.c Fix compile after wlroots commit c3e54021f8bbf3ec1c1e5906459be0ae85f5fb8c 2021-10-07 21:29:37 +03:00