mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 1708480: Move InitializeVirtualDesktopManagerTask outside of #ifdef ACCESSIBILITY. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D113816
This commit is contained in:
parent
8b91be585f
commit
075f140641
@ -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)
|
||||
|
||||
/**************************************************************
|
||||
**************************************************************
|
||||
**
|
||||
|
Loading…
Reference in New Issue
Block a user