Refactor Bar/Output surfaces into anon struct
Both the wl_surface and layer_surface in each are always expected to exist at the same time. Since they're optional, it makes more sense to combine them into a single optional struct.
This commit is contained in:
parent
bcc0e9705e
commit
43ebdd273c
3 changed files with 52 additions and 43 deletions
|
|
@ -143,7 +143,7 @@ pub fn manage(context: *Context) void {
|
|||
while (out_it.next()) |output| {
|
||||
if (context.wallpaper_image == null) {
|
||||
output.deinitWallpaperLayerSurface();
|
||||
} else if (output.wl_surface != null) {
|
||||
} else if (output.surfaces != null) {
|
||||
output.renderWallpaper() catch |err| {
|
||||
log.err("Wallpaper re-render failed: {}", .{err});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue