Home GnuPG
Diffusion GpgOL 57dd3ee1dd73

Make UI invalidation more deterministic

Description

Make UI invalidation more deterministic

* src/explorer-events.cpp (hasSelection, startWatchdog, changeSeen):
New.
* src/mail.cpp (do_parsing): Block invalidation while parsing.
* src/windowmessages.cpp (blockInv, unblockInv): New.
(delayed_invalidate_ui): Handle block inv state.
* src/windowmessages.h: Update accordingly.

UI Invalidation is extremly expensive and often a cause for
crashes. So we should avoid it as much as possible. This
code aims just to do that while still not skipping any
required invalidation.

Details

Provenance
aheineckeAuthored on Jul 20 2018, 3:21 PM
Parents
rOaaafbc793741: Add tracing for update body
Branches
Unknown
Tags
Unknown