diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-06-29 23:42:32 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-06-30 14:59:09 +0100 |
commit | 752a36457f6cddc5265a2d5f60157fd625f56b02 (patch) | |
tree | d6cebea7f8f1a9f9c40e3a0ffec38f719b018fcb /vcl/source/app | |
parent | a7540d9f59a172b81f075890f1835b21ec6ab7b3 (diff) |
use VCL_HIDE_WINDOWS env on Mac to 'simulate' headless mode on Mac
Building, and running the unit/subsequent test on Mac cause massive amount
of flashing windows creation/destruction that make building with test
very annoying on a box used for other purposes.
This patch prevent the windows to be actually displayed hence mitigating
the problem
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Conflicts:
vcl/source/window/window.cxx
Change-Id: Ied2a36699b50856e0c4e6b618212481796ec99d3
Diffstat (limited to 'vcl/source/app')
-rw-r--r-- | vcl/source/app/settings.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index 4174d5af59ae..97b05d04c855 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -213,6 +213,7 @@ struct ImplMiscData TriState mnEnableATT; bool mbEnableLocalizedDecimalSep; TriState mnDisablePrinting; + bool mbPseudoHeadless; }; struct ImplHelpData @@ -2341,6 +2342,8 @@ ImplMiscData::ImplMiscData() mnDisablePrinting = TRISTATE_INDET; static const char* pEnv = getenv("SAL_DECIMALSEP_ENABLED" ); // set default without UI mbEnableLocalizedDecimalSep = (pEnv != NULL); + pEnv = getenv("VCL_HIDE_WINDOWS"); // do not display any windows + mbPseudoHeadless = (pEnv != NULL); } ImplMiscData::ImplMiscData( const ImplMiscData& rData ) @@ -2348,6 +2351,7 @@ ImplMiscData::ImplMiscData( const ImplMiscData& rData ) mnEnableATT = rData.mnEnableATT; mnDisablePrinting = rData.mnDisablePrinting; mbEnableLocalizedDecimalSep = rData.mbEnableLocalizedDecimalSep; + mbPseudoHeadless = rData.mbPseudoHeadless; } MiscSettings::MiscSettings() @@ -2535,6 +2539,11 @@ bool MiscSettings::GetEnableLocalizedDecimalSep() const return mpData->mbEnableLocalizedDecimalSep; } +bool MiscSettings::GetPseudoHeadless() const +{ + return mpData->mbPseudoHeadless; +} + ImplHelpData::ImplHelpData() { mnTipDelay = 500; |