Unmark some structs as pub
This commit is contained in:
parent
2f29434af0
commit
96d34bc043
5 changed files with 11 additions and 12 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue