build: fix if wlroots x11 backend is disabled

This commit is contained in:
Isaac Freund
2021-03-01 14:54:36 +01:00
parent 26b0acddb7
commit 27cac16ced
2 changed files with 2 additions and 2 deletions

View File

@ -560,7 +560,7 @@ pub fn getEffectiveResolution(self: *Self) struct { width: u32, height: u32 } {
pub fn setTitle(self: *Self, title: [*:0]const u8) void {
if (self.wlr_output.isWl()) {
self.wlr_output.wlSetTitle(title);
} else if (self.wlr_output.isX11()) {
} else if (wlr.config.has_x11_backend and self.wlr_output.isX11()) {
self.wlr_output.x11SetTitle(title);
}
}