Apply Rect to Buffer.borderedRectangle

Also set it to have all fields with a default of 0 since we use that
quite a bit and it saves writing it.
This commit is contained in:
Ben Buhse 2026-02-16 17:32:46 -06:00
commit a37f72f0d7
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
5 changed files with 21 additions and 42 deletions

View file

@ -9,12 +9,7 @@ context: *Context,
river_window_v1: *river.WindowV1,
river_node_v1: *river.NodeV1,
rect: utils.Rect = .{
.width = 0,
.height = 0,
.x = 0,
.y = 0,
},
rect: utils.Rect = .{},
fullscreen: bool = false,
maximized: bool = false,
@ -23,12 +18,7 @@ tags: u32 = 0x0001,
output: ?*Output,
floating: bool = false,
floating_rect: utils.Rect = .{
.width = 0,
.height = 0,
.x = 0,
.y = 0,
},
floating_rect: utils.Rect = .{},
initialized: bool = false,