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
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 2 additions and 2 deletions

2
deps/zig-wlroots vendored

@ -1 +1 @@
Subproject commit 1bdbb7a15a4038ff8bf7c9272c6a4d6eeb64ffa2 Subproject commit 35e5676b1a77b2a44f370280b78b0d38598d97ee

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 { pub fn setTitle(self: *Self, title: [*:0]const u8) void {
if (self.wlr_output.isWl()) { if (self.wlr_output.isWl()) {
self.wlr_output.wlSetTitle(title); 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); self.wlr_output.x11SetTitle(title);
} }
} }