From 91d17042f66ed6ee723af64fc1f2f23b5e2587ea Mon Sep 17 00:00:00 2001 From: Ben Buhse Date: Thu, 2 Apr 2026 16:08:32 -0500 Subject: [PATCH] Add two log messages to XkbBindings.focusOutput() --- src/XkbBindings.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/XkbBindings.zig b/src/XkbBindings.zig index 79ad054..ae19305 100644 --- a/src/XkbBindings.zig +++ b/src/XkbBindings.zig @@ -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; } }