summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-12-16 14:07:22 +1100
committerMaxime Coste <mawww@kakoune.org>2019-12-16 14:07:22 +1100
commitefabe281732fa4a2cb83ab2adf65c840c251101f (patch)
tree6d79605a7a14db665fe3f2747ebf1df2f73844ee /src/client.cc
parentf8ab9e07804d243b09610b4e8bf7e1edbc5c52c3 (diff)
Fix WinResize hook getting triggered during urgent event processing
WinResize hooks could be triggered during shell evaluation, leading to any state potentially getting mutated after a shell evaluation call.
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc
index 6ee3cfae..2c84de6b 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -80,6 +80,7 @@ bool Client::is_ui_ok() const
bool Client::process_pending_inputs()
{
const bool debug_keys = (bool)(context().options()["debug"].get<DebugFlags>() & DebugFlags::Keys);
+ m_window->run_resize_hook_ifn();
// steal keys as we might receive new keys while handling them.
Vector<Key, MemoryDomain::Client> keys = std::move(m_pending_keys);
for (auto& key : keys)