dotfiles/scripts/wlbg/src/OutputWindow.zig
2023-10-28 11:51:12 +02:00

15 lines
357 B
Zig

const wl = @import("wayland").client.wl;
const c = @import("ffi.zig").c;
egl_win: *wl.EglWindow,
egl_surface: c.EGLSurface,
surface: *wl.Surface,
const OutputWindow = @This();
pub fn deinit(self: OutputWindow, egl_dpy: c.EGLDisplay) void {
self.egl_win.destroy();
self.surface.destroy();
_ = c.eglDestroySurface(egl_dpy, self.egl_surface);
}