From c045d8f95a9c59d908236d591569f6cfc319d7e0 Mon Sep 17 00:00:00 2001 From: Xarvex Date: Fri, 21 Jun 2024 03:33:47 -0500 Subject: [PATCH] fix(WezTerm): get working on Hyprland See [#5264](https://github.com/wez/wezterm/pull/5264) --- overlay/default.nix | 6 ++++++ overlay/wezterm-5264.patch | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 overlay/wezterm-5264.patch diff --git a/overlay/default.nix b/overlay/default.nix index a6bf87a..faffea8 100644 --- a/overlay/default.nix +++ b/overlay/default.nix @@ -9,6 +9,12 @@ ./fastfetch-nixos-small.patch ]; }); + + # until release made and available + wezterm = prev.wezterm.overrideAttrs (o: { + # https://github.com/wez/wezterm/pull/5264 + patches = (o.patches or [ ]) ++ [ ./wezterm-5264.patch ]; + }); }) ]; } diff --git a/overlay/wezterm-5264.patch b/overlay/wezterm-5264.patch new file mode 100644 index 0000000..a020294 --- /dev/null +++ b/overlay/wezterm-5264.patch @@ -0,0 +1,16 @@ +diff --git a/window/src/os/wayland/window.rs b/window/src/os/wayland/window.rs +index 64095e7cd..da034591f 100644 +--- a/window/src/os/wayland/window.rs ++++ b/window/src/os/wayland/window.rs +@@ -1111,6 +1111,11 @@ impl WaylandWindowInner { + if self.window.is_none() { + return; + } ++ ++ if self.frame_callback.is_some() { ++ self.events.dispatch(WindowEvent::NeedRepaint); ++ } ++ + // The window won't be visible until we've done our first paint, + // so we unconditionally queue a NeedRepaint event + self.do_paint().unwrap();