lok: avoid emission storms of un-necessary invalidations.
commit9b97efd4228489f2e54a948e676917e50902fd33
authorMichael Meeks <michael.meeks@collabora.com>
Fri, 10 Jan 2020 12:29:48 +0000 (10 12:29 +0000)
committerMichael Meeks <michael.meeks@collabora.com>
Fri, 10 Jan 2020 14:09:09 +0000 (10 15:09 +0100)
tree964b531deb7db07cf6a4c3868bad6d4c62099ab2
parentc8273e30231ca3e92c9eabaa2f598604f96b23a3
lok: avoid emission storms of un-necessary invalidations.

Common when constructing widgets with VclBuilder - which avoids
the 'Show' detection Pranav introduced in 8de98e61fbc.

This saves ~80% of the ~100k mostly bogus calls I get to:
desktop::CallbackFlushHandler::processWindowEvent when opening
and closing a few windows.

Change-Id: Ie508d6e19274472b85543275aee33f078ddcbbb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86534
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
vcl/source/window/paint.cxx
vcl/source/window/window2.cxx