river-status: implement protocol
This commit is contained in:
@ -105,6 +105,11 @@ pub fn surfaceAt(self: Self, ox: f64, oy: f64, sx: *f64, sy: *f64) ?*c.wlr_surfa
|
||||
);
|
||||
}
|
||||
|
||||
/// Get the current title of the xwayland surface. May be an empty string
|
||||
pub fn getTitle(self: Self) [*:0]const u8 {
|
||||
return self.wlr_xwayland_surface.title;
|
||||
}
|
||||
|
||||
/// Called when the xwayland surface is destroyed
|
||||
fn handleDestroy(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void {
|
||||
const self = @fieldParentPtr(Self, "listen_destroy", listener.?);
|
||||
|
Reference in New Issue
Block a user