summaryrefslogtreecommitdiff
path: root/src/app/runtime.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-25 18:39:44 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-25 18:42:33 +0300
commit58bcd76bfdb76ecbb8cfee868dabe60b43f16cc6 (patch)
treedad4b122401b87c9bc9b8e5b46b854c9534fc983 /src/app/runtime.rs
parentac9dac0263ba2336710e8fc350600ff8674ebf99 (diff)
feat: make focus-gain redraw configurable
refs #282
Diffstat (limited to 'src/app/runtime.rs')
-rw-r--r--src/app/runtime.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/runtime.rs b/src/app/runtime.rs
index 284fb882..85bdb8dd 100644
--- a/src/app/runtime.rs
+++ b/src/app/runtime.rs
@@ -106,7 +106,9 @@ impl App {
true
}
crate::raw_input::RawInputEvent::OuterFocusGained => {
- self.request_full_redraw();
+ if self.state.redraw_on_focus_gained {
+ self.request_full_redraw();
+ }
self.state.outer_terminal_focus = Some(true);
self.state.mark_active_tab_seen();
true