From 96d34bc0439984ac751df7efcd5c8fc3fde8dbd1 Mon Sep 17 00:00:00 2001 From: Ben Buhse Date: Fri, 20 Mar 2026 10:21:16 -0500 Subject: [PATCH] Unmark some structs as pub --- src/Bar.zig | 4 ++-- src/Context.zig | 5 ++--- src/Output.zig | 4 ++-- src/Seat.zig | 6 +++--- src/Window.zig | 4 ++-- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/Bar.zig b/src/Bar.zig index f62d104..02bfc48 100644 --- a/src/Bar.zig +++ b/src/Bar.zig @@ -34,11 +34,11 @@ surfaces: struct { pending_manage: PendingManage = .{}, pending_render: PendingRender = .{}, -pub const PendingManage = struct { +const PendingManage = struct { output_geometry: bool = false, }; -pub const PendingRender = struct { +const PendingRender = struct { position: ?struct { x: i32, y: i32 } = null, draw: bool = false, }; diff --git a/src/Context.zig b/src/Context.zig index ebaa6a2..4cb9712 100644 --- a/src/Context.zig +++ b/src/Context.zig @@ -36,12 +36,11 @@ config: *Config, /// State consumed in manage() phase, reset at end of manage(). pending_manage: PendingManage = .{}, -pub const PendingManage = struct { +const PendingManage = struct { config: ?*Config = null, }; -// I use this because otherwise create() takes -// a LOT of arguments. +// I use this because otherwise create() takes a LOT of arguments. pub const Options = struct { wl_compositor: *wl.Compositor, wl_display: *wl.Display, diff --git a/src/Output.zig b/src/Output.zig index 2fbe5e9..29a8b09 100644 --- a/src/Output.zig +++ b/src/Output.zig @@ -56,12 +56,12 @@ windows: wl.list.Head(Window, .link), link: wl.list.Link, /// Struct used for tagmask-specific count/ratio overrides -pub const TagLayoutOverride = struct { +const TagLayoutOverride = struct { primary_count: u8, primary_ratio: f32, }; -pub const PendingManage = struct { +const PendingManage = struct { position: ?struct { x: i32, y: i32 } = null, dimensions: ?struct { width: u31, height: u31 } = null, diff --git a/src/Seat.zig b/src/Seat.zig index 012ab3c..7a5447b 100644 --- a/src/Seat.zig +++ b/src/Seat.zig @@ -28,7 +28,7 @@ resize_pointer_binding: ?*river.PointerBindingV1 = null, // that's *not* for focus, we'll have to create our own enum and just keep it in sync. pub const LayerFocus = @typeInfo(river.LayerShellSeatV1.Event).@"union".tag_type.?; -pub const PendingManage = struct { +const PendingManage = struct { window: ?PendingWindow = null, output: ?PendingOutput = null, layer_focus: ?LayerFocus = null, @@ -39,12 +39,12 @@ pub const PendingManage = struct { pointer_move_request: ?*Window = null, pointer_resize_request: ?struct { window: *Window, edges: river.WindowV1.Edges } = null, - pub const PendingWindow = union(enum) { + const PendingWindow = union(enum) { window: *Window, clear_focus, }; - pub const PendingOutput = union(enum) { + const PendingOutput = union(enum) { output: *Output, clear_focus, }; diff --git a/src/Window.zig b/src/Window.zig index c9d48d4..564aec7 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -55,7 +55,7 @@ pub const PendingManage = struct { }; }; -pub const PendingRender = struct { +const PendingRender = struct { position: ?struct { x: i32, y: i32 } = null, focused: ?bool = null, @@ -66,7 +66,7 @@ pub const PendingRender = struct { place_top: bool = false, }; -pub const DimensionsHint = struct { +const DimensionsHint = struct { min_width: u31 = 0, min_height: u31 = 0, max_width: u31 = 0,