From 27cac16ced8ec4a93ac6dec224a4ccabd70f4659 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 1 Mar 2021 14:54:36 +0100 Subject: [PATCH] build: fix if wlroots x11 backend is disabled --- deps/zig-wlroots | 2 +- river/Output.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/zig-wlroots b/deps/zig-wlroots index 1bdbb7a..35e5676 160000 --- a/deps/zig-wlroots +++ b/deps/zig-wlroots @@ -1 +1 @@ -Subproject commit 1bdbb7a15a4038ff8bf7c9272c6a4d6eeb64ffa2 +Subproject commit 35e5676b1a77b2a44f370280b78b0d38598d97ee diff --git a/river/Output.zig b/river/Output.zig index b9600be..03c9f0f 100644 --- a/river/Output.zig +++ b/river/Output.zig @@ -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); } }