diff options
author | Henry Castro <hcastro@collabora.com> | 2020-12-17 10:45:13 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-12-22 13:03:59 +0100 |
commit | 71ec214d7583f637fefcb5eca13c637cc6b38029 (patch) | |
tree | dd3a089e9eba938e5122511e0ff435ed900167e1 /vcl/inc | |
parent | e0e2e01c042346d15a543b6449336aae46e92507 (diff) |
jsdialog: disable idle notify
After testing on client side, when showing
the Macro Selector Dialog its receive 5 times
the same data.
So add an option to not use the idle notifier
instead it will use the event 'WindowShow'.
Change-Id: Ib5657f3c823fc6e998581b99052aaf578d0913e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107893
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/jsdialog/jsdialogbuilder.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/window.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/jsdialog/jsdialogbuilder.hxx b/vcl/inc/jsdialog/jsdialogbuilder.hxx index d3c6e7b26d48..14090f43a0e4 100644 --- a/vcl/inc/jsdialog/jsdialogbuilder.hxx +++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx @@ -49,6 +49,7 @@ public: void Invoke() override; void ForceUpdate(); void sendClose(); + VclPtr<vcl::Window> getNotifierWindow() { return m_aNotifierWindow; } private: void send(std::unique_ptr<tools::JsonWriter> aJsonWriter); diff --git a/vcl/inc/window.h b/vcl/inc/window.h index a14852ca02c0..a6d46c41eeda 100644 --- a/vcl/inc/window.h +++ b/vcl/inc/window.h @@ -117,6 +117,8 @@ struct ImplWinData sal_uInt16 mnIsTopWindow; bool mbMouseOver; //< tracks mouse over for native widget paint effect bool mbEnableNativeWidget; //< toggle native widget rendering + bool mbDisableIdleNotify; + ::std::list< VclPtr<vcl::Window> > maTopWindowChildren; |