diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-12-16 14:07:22 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-12-16 14:07:22 +1100 |
| commit | efabe281732fa4a2cb83ab2adf65c840c251101f (patch) | |
| tree | 6d79605a7a14db665fe3f2747ebf1df2f73844ee /src/window.hh | |
| parent | f8ab9e07804d243b09610b4e8bf7e1edbc5c52c3 (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/window.hh')
| -rw-r--r-- | src/window.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.hh b/src/window.hh index 6d3b7393..ad754568 100644 --- a/src/window.hh +++ b/src/window.hh @@ -48,6 +48,8 @@ public: void set_client(Client* client) { m_client = client; } void clear_display_buffer(); + void run_resize_hook_ifn(); + private: Window(const Window&) = delete; @@ -66,6 +68,7 @@ private: DisplayBuffer m_display_buffer; Highlighters m_builtin_highlighters; + bool m_resize_hook_pending = false; struct Setup { |
