deps: update zig-wayland for a minor cleanup

This commit is contained in:
Isaac Freund 2024-03-15 19:07:45 +01:00
parent d64cbd2100
commit 3f49ff9631
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
2 changed files with 2 additions and 4 deletions

2
deps/zig-wayland vendored

@ -1 +1 @@
Subproject commit 70285787ce871a5f2bc91151a610f54b537c8857 Subproject commit 73fed093301b2e5f58998aa4797ce952bd148676

View File

@ -584,9 +584,7 @@ pub fn attachAfter(view: *View, output_pending: *Output.PendingState, n: usize)
/// Attach above or below the currently focused view /// Attach above or below the currently focused view
pub fn attachRelative(view: *View, output_pending: *Output.PendingState, mode: AttachRelativeMode) void { pub fn attachRelative(view: *View, output_pending: *Output.PendingState, mode: AttachRelativeMode) void {
var focus_stack_it = output_pending.focus_stack.iterator(.forward); const focus_stack_head = output_pending.focus_stack.first() orelse {
const focus_stack_head = focus_stack_it.next() orelse {
output_pending.wm_stack.append(view); output_pending.wm_stack.append(view);
return; return;
}; };