TextInput: handle multiple text inputs correctly

The protocol states that we must send enter and leave to all text input
objects if the client has created multiple.

Only one text input is allowed to be activated by the client per seat
however.
This commit is contained in:
Isaac Freund
2023-12-31 14:44:38 -06:00
parent 49defcfb7a
commit 134a6bcfb5
4 changed files with 63 additions and 63 deletions

View File

@ -268,7 +268,7 @@ pub fn setFocusRaw(self: *Self, new_focus: FocusTarget) void {
}
self.keyboardEnterOrLeave(target_surface);
self.relay.setSurfaceFocus(target_surface);
self.relay.focus(target_surface);
if (target_surface) |surface| {
const pointer_constraints = server.input_manager.pointer_constraints;