From b28b4c91051898138b1a9fc9f41a049d979be2cc Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Jan 16 2024 16:09:11 +0000 Subject: Work around a GNOME Wayland bug that prevents maximized window updates --- diff --git a/alacritty-0.13-ignore-xdg-shell-suspended-state.patch b/alacritty-0.13-ignore-xdg-shell-suspended-state.patch new file mode 100644 index 0000000..84b4800 --- /dev/null +++ b/alacritty-0.13-ignore-xdg-shell-suspended-state.patch @@ -0,0 +1,14 @@ +diff --git a/src/event.rs b/src/event.rs +index 3b3d8297..ccfbecd3 100644 +--- a/src/event.rs ++++ b/src/event.rs +@@ -1413,8 +1413,7 @@ impl input::Processor> { + self.ctx.update_cursor_blinking(); + self.on_focus_change(is_focused); + }, +- WindowEvent::Occluded(occluded) => { +- *self.ctx.occluded = occluded; ++ WindowEvent::Occluded(_) => { + }, + WindowEvent::DroppedFile(path) => { + let path: String = path.to_string_lossy().into(); diff --git a/rust-alacritty.spec b/rust-alacritty.spec index ce08961..e45ea49 100644 --- a/rust-alacritty.spec +++ b/rust-alacritty.spec @@ -13,6 +13,11 @@ URL: https://crates.io/crates/alacritty Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: alacritty-fix-metadata-auto.diff +# GNOME 45.2 or later tells alacritty window to stop rendering under certain +# conditions. +# https://github.com/alacritty/alacritty/issues/7465#issuecomment-1871014052 +# https://gitlab.gnome.org/GNOME/mutter/-/issues/3229 +Patch: alacritty-0.13-ignore-xdg-shell-suspended-state.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: desktop-file-utils