diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-02-22 12:40:26 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-02-22 19:20:28 +0100 |
commit | 8bd289c43c34ab9258f4b08a0f3f6143dc710e4e (patch) | |
tree | 723ed2efd3d55b8b51d05e0e83d01dea451262d5 /vcl/inc | |
parent | d4b4f5f1f4e452cb9f4a0e202b57c0a8610c1cad (diff) |
tdf#103690: Set up notifications only after VCL has been initialised
On some Macs, it seems that LibreOffice (or any app?) gets an
NSApplicationDidChangeScreenParametersNotification as soon as it has
started and asked for such a notification. Our handler for that
notification assumes that VCL is initialised. Thus we should not ask
for such notifications before VCL has been initialised.
I could not reproduce the reported crash with an unmodified
LibreOffice, only after inserting a sleep after the notifications had
been set up. But I am fairly sure this change fixes the problem.
Change-Id: I18d342eb7dc0c77cb7fc8623756bead65a1bd329
Reviewed-on: https://gerrit.libreoffice.org/50164
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/salinst.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx index 1eadc7ac382f..600f8ddfb8b3 100644 --- a/vcl/inc/salinst.hxx +++ b/vcl/inc/salinst.hxx @@ -205,6 +205,10 @@ void DeInitSalData(); // called from Application-Dtor void InitSalMain(); +#ifdef MACOSX +void postInitVCLinitNSApp(); +#endif + #endif // INCLUDED_VCL_INC_SALINST_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |