Add two log messages to XkbBindings.focusOutput()

This commit is contained in:
Ben Buhse 2026-04-02 16:08:32 -05:00
commit 91d17042f6
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4

View file

@ -347,6 +347,7 @@ const XkbBinding = struct {
if (pending_focus) |output| blk: {
// This should be a noop if there's only one output
if (output == seat.focused_output) {
log.debug("focusOutput(): trying to focus current output", .{});
break :blk;
}
@ -367,6 +368,9 @@ const XkbBinding = struct {
seat.pending_manage.window = .clear_focus;
}
} else {
log.warn("focusOutput(): no outputs", .{});
// This should only ever be reached if there were no outputs and then the user
// tries to change the focused output again.
seat.pending_manage.output = .clear_focus;
}
}