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

@ -17,20 +17,10 @@ name: ?[]const u8 = null,
// Output geometry
scale: u31 = 1,
geometry: Rect = .{
.x = 0,
.y = 0,
.width = 0,
.height = 0,
},
geometry: Rect = .{},
// Area left after layer shell surfaces take exclusive area
usable_geometry: Rect = .{
.x = 0,
.y = 0,
.width = 0,
.height = 0,
},
usable_geometry: Rect = .{},
// Information for this Output's wallpaper
wallpaper_render_scale: u31 = 0,