Skip to content

Commit

Permalink
fix(WezTerm): get working on Hyprland
Browse files Browse the repository at this point in the history
See [#5264](wez/wezterm#5264)
  • Loading branch information
xarvex committed Jun 21, 2024
1 parent 7a22d9a commit c045d8f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions overlay/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
});
})
];
}
16 changes: 16 additions & 0 deletions overlay/wezterm-5264.patch
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit c045d8f

Please sign in to comment.