Move Utf-8 -> codepoint conversion to utils

Once we add more text to the bar, it makes sense to move this into a
helper function.
This commit is contained in:
Ben Buhse 2026-02-26 17:29:22 -06:00
commit 062748967c
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
3 changed files with 57 additions and 12 deletions

View file

@ -145,7 +145,7 @@ fn windowListener(river_window_v1: *river.WindowV1, event: river.WindowV1.Event,
while (it.next()) |seat| {
if (seat.focused_window == window) {
// Find another window to focus and warp pointer there
if (output.prevWindow(window)) |next_focus| {
if (output.nextWindow(window)) |next_focus| {
if (next_focus != window) {
seat.pending_manage.window = .{ .window = next_focus };
seat.pending_manage.should_warp_pointer = true;