Switch TagOverlay to use river_shell_surface_v1
This follows the same patterns that Wallpaper and Bar did and makes TagOverlay use the same manage/render cycle as the rest of the WM. We also switched to just use a poll timer like river-tag-overlay instead of using the timerfd. I realized that the Zig stdlib doesn't actually support timerfds for FreeBSD right now and I don't feel like adding them.
This commit is contained in:
parent
8b8efe2186
commit
3150d1a842
12 changed files with 143 additions and 335 deletions
|
|
@ -119,8 +119,6 @@ pub fn init(context: *Context, output: *Output, options: Options) !Bar {
|
|||
}
|
||||
|
||||
pub fn deinit(bar: *Bar) void {
|
||||
bar.output.bar = null;
|
||||
|
||||
bar.timezone.deinit();
|
||||
bar.fcft_fonts.destroy();
|
||||
|
||||
|
|
@ -128,6 +126,8 @@ pub fn deinit(bar: *Bar) void {
|
|||
bar.surfaces.river_shell_surface.destroy();
|
||||
bar.surfaces.wl_surface.destroy();
|
||||
bar.context.buffer_pool.surface_count -= 1;
|
||||
|
||||
bar.output.bar = null;
|
||||
}
|
||||
|
||||
/// Update bar options in-place without destroying/recreating Wayland surfaces
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue