mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-28 22:22:41 +03:00
Fix potential missed redraws
This commit is contained in:
parent
2750aa90ca
commit
b22c8ad8c7
@ -681,13 +681,16 @@ int run_server(StringView session, StringView server_init,
|
||||
{
|
||||
client_manager.redraw_clients();
|
||||
|
||||
// Loop a
|
||||
// Loop so that eventual inputs happening during the processing are handled as
|
||||
// well, avoiding unneeded redraws.
|
||||
bool allow_blocking = not client_manager.has_pending_inputs();
|
||||
while (event_manager.handle_next_events(EventMode::Normal, nullptr, allow_blocking))
|
||||
{
|
||||
client_manager.process_pending_inputs();
|
||||
allow_blocking = false;
|
||||
}
|
||||
client_manager.process_pending_inputs();
|
||||
|
||||
client_manager.clear_client_trash();
|
||||
client_manager.clear_window_trash();
|
||||
buffer_manager.clear_buffer_trash();
|
||||
|
Loading…
Reference in New Issue
Block a user