mirror of
https://github.com/wez/wezterm.git
synced 2024-10-26 15:52:29 +03:00
doc(wayland): update comment in show
This commit is contained in:
parent
1266912629
commit
b21c3f6b3d
@ -545,11 +545,10 @@ impl WaylandWindowInner {
|
||||
}
|
||||
|
||||
// If the do_paint function has been called previously, calling it again will not
|
||||
// trigger the NeedRepaint event. This results in the window not being displayed
|
||||
// correctly after show is called.
|
||||
// send the NeedRepaint event. This results in the window not being displayed
|
||||
// correctly.
|
||||
// Therefore, when frame_callback is set to some, it indicates that do_paint has
|
||||
// been called before. We need to trigger the Repaint event again to ensure the
|
||||
// window is displayed correctly.
|
||||
// been called before. We need to send the NeedRepaint event again.
|
||||
// Fix: https://github.com/wez/wezterm/issues/5103
|
||||
if self.frame_callback.is_some() {
|
||||
self.events.dispatch(WindowEvent::NeedRepaint);
|
||||
|
Loading…
Reference in New Issue
Block a user