aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index ec327009..ee774094 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -181,7 +181,7 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box<Error>> {
});
// Maybe draw the terminal
- if terminal.needs_draw() {
+ if terminal.needs_draw() && display.window().drawing_ready() {
// Try to update the position of the input method editor
display.update_ime_position(&terminal);
// Handle pending resize events