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:
@ -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;
|
||||
|
Reference in New Issue
Block a user