lok: sidebar: avoid deactivation when the sidebar is painting
commit96fa2f494560bcc90584a458438db688b7f0aa88
authorHenry Castro <hcastro@collabora.com>
Wed, 23 Sep 2020 14:59:44 +0000 (23 10:59 -0400)
committerHenry Castro <hcastro@collabora.com>
Mon, 5 Oct 2020 15:11:02 +0000 (5 17:11 +0200)
treea096c3faad0191ce3e6b25628bc3a808f19f95bc
parenta52246c4079de02f927582b0e8a476e9edafbc99
lok: sidebar: avoid deactivation when the sidebar is painting

When two views (SfxViewFrame) get activated and deactivated
frequently when one view grab the focus and lose focus (respectively),
in multiple user this is not true, both users have the view
active at the same time.

The patch removes the overhead when painting a sidebar window
to avoid unnecessary deactivation.

Change-Id: Ica5837c9f2eda5db1bee69ec2297e54c4845d467
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103263
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
(cherry picked from commit 0a8be32f6130a4b84cd3f9ca70f6109dd78bf434)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103441
Tested-by: Jenkins
sfx2/source/appl/app.cxx