mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-06 03:46:29 +08:00
lib/platform: Use std::function instead of IJob in MSWindowsDesks
This commit is contained in:
@@ -50,10 +50,7 @@ protected:
|
||||
|
||||
MSWindowsDesks* newDesks(IEventQueue* eventQueue)
|
||||
{
|
||||
return new MSWindowsDesks(
|
||||
true, false, m_screensaver, eventQueue,
|
||||
new TMethodJob<MSWindowsKeyStateTests>(
|
||||
this, &MSWindowsKeyStateTests::updateKeysCB), false);
|
||||
return new MSWindowsDesks(true, false, m_screensaver, eventQueue, [](){}, false);
|
||||
}
|
||||
|
||||
void* getEventTarget() const
|
||||
@@ -62,9 +59,7 @@ protected:
|
||||
}
|
||||
|
||||
private:
|
||||
void updateKeysCB(void*) { }
|
||||
IScreenSaver* m_screensaver;
|
||||
MSWindowsHook m_hook;
|
||||
};
|
||||
|
||||
TEST_F(MSWindowsKeyStateTests, disable_eventQueueNotUsed)
|
||||
|
||||
Reference in New Issue
Block a user