mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 13:21:38 +03:00
d8cfdae27b
The bug here was that each paint call in a window would update the focus state of its panes to reflect the one that had focus. However, it didn't account for the actual window focus; it would just assume that it was focused. The result was that the perceived focus would alternate between each of the windows in the wezterm process, and if you were running an application that had enabled focus tracking, those events could cause a repaint and drive up the CPU utilization. This commit addresses that by gating the focus update to only occur when we have the focus, and for extra safety, avoid generating focus events at the terminal layer if the new state matches the current state. refs: https://github.com/wez/wezterm/issues/1838 |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml |