From 842503c1c31c4f442c4467e4d08ddc3d90bf01c0 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Wed, 15 Oct 2025 21:20:25 +0200 Subject: [PATCH] wlroots_0_19: backport patch to fix crash in wlr_backend_commit Caused issues with sway, which would cause it to crash. --- pkgs/development/libraries/wlroots/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/libraries/wlroots/default.nix b/pkgs/development/libraries/wlroots/default.nix index 66cbe09dd1a2..7518d68b2fb1 100644 --- a/pkgs/development/libraries/wlroots/default.nix +++ b/pkgs/development/libraries/wlroots/default.nix @@ -174,5 +174,14 @@ in extraBuildInputs = [ lcms2 ]; + patches = [ + (fetchpatch { + # https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5134 + # > backend, output: send commit events after applying all in wlr_backend_commit() + # fixes potential crash in sway. Remove once a new release is made of wlroots + url = "https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/7392b3313a7b483c61f4fea648ba8f2aa4ce8798.patch"; + sha256 = "sha256-SK463pnIX2qjwRblCJRbvJeZTL6wAXho6wBIJ10OuNk="; + }) + ]; }; }