Bug 1708480: Move InitializeVirtualDesktopManagerTask outside of #ifdef ACCESSIBILITY. r=mikedeboer

Differential Revision: https://phabricator.services.mozilla.com/D113816
This commit is contained in:
Bas Schouten 2021-04-30 20:33:23 +00:00
parent 8b91be585f
commit 075f140641

View File

@ -563,6 +563,12 @@ WindowsDllInterceptor::FuncHookType<decltype(&SendMessageTimeoutW)>
TIPMessageHandler::sSendMessageTimeoutWStub;
StaticAutoPtr<TIPMessageHandler> TIPMessageHandler::sInstance;
} // namespace mozilla
#endif // defined(ACCESSIBILITY)
namespace mozilla {
// This task will get the VirtualDesktopManager from the generic thread pool
// since doing this on the main thread on startup causes performance issues.
//
@ -576,7 +582,7 @@ class InitializeVirtualDesktopManagerTask : public Task {
InitializeVirtualDesktopManagerTask() : Task(false, kDefaultPriorityValue) {}
virtual bool Run() override {
# ifndef __MINGW32__
#ifndef __MINGW32__
if (!IsWin10OrLater()) {
return true;
}
@ -590,15 +596,13 @@ class InitializeVirtualDesktopManagerTask : public Task {
}
gVirtualDesktopManager = desktopManager;
# endif
#endif
return true;
}
};
} // namespace mozilla
#endif // defined(ACCESSIBILITY)
/**************************************************************
**************************************************************
**