mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
fix: build error on macos
This commit is contained in:
parent
c71942cda6
commit
16ee41074f
1 changed files with 2 additions and 1 deletions
|
@ -183,7 +183,8 @@ void CocoaMouseTap::run()
|
|||
|
||||
m_tapData->runloop = CFRunLoopGetCurrent();
|
||||
CFRunLoopAddSource(m_tapData->runloop, m_tapData->runloopSource, kCFRunLoopCommonModes);
|
||||
CFRunLoopTimerContext context = {.info = &m_runloopStartedSemaphore};
|
||||
CFRunLoopTimerContext context{};
|
||||
context.info = &m_runloopStartedSemaphore;
|
||||
/* We signal the runloop started semaphore *after* the run loop has started, indicating it's safe to CFRunLoopStop it. */
|
||||
CFRunLoopTimerRef timer = CFRunLoopTimerCreate(kCFAllocatorDefault, CFAbsoluteTimeGetCurrent(), 0, 0, 0, &SemaphorePostCallback, &context);
|
||||
CFRunLoopAddTimer(m_tapData->runloop, timer, kCFRunLoopCommonModes);
|
||||
|
|
Loading…
Add table
Reference in a new issue