Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wezterm not starting on Hyprland >= 0.37.0 #5264

Merged
merged 4 commits into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions window/src/os/wayland/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,16 @@ impl WaylandWindowInner {
return;
}

// If the do_paint function has been called previously, calling it again will not
// send the NeedRepaint event. This results in the window not being displayed
// correctly.
// Therefore, when frame_callback is set to some, we need to send the NeedRepaint
// event again to ensure the window is displayed.
// Fix: https://github.com/wez/wezterm/issues/5103
if self.frame_callback.is_some() {
self.events.dispatch(WindowEvent::NeedRepaint);
}

self.do_paint().unwrap();
}

Expand Down