Skip to content

Commit 75920ab

Browse files
committed
Fix macOS Qt build
1 parent a3d2a07 commit 75920ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/app/toolkits/qt/platforms/macos/MacOSDesktopWindow.cc

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ MacOSDesktopWindow::get_desktop_image() -> QPixmap
3535
{
3636
QPixmap pixmap;
3737

38+
// TODO: rewrite using ScreenCaptureKit
39+
#if TODO_REWRITE
3840
CFArrayRef windowList = CGWindowListCopyWindowInfo(kCGWindowListOptionAll /*OnScreenOnly*/, kCGNullWindowID);
3941
CFIndex numWindows = CFArrayGetCount(windowList);
4042

@@ -65,5 +67,6 @@ MacOSDesktopWindow::get_desktop_image() -> QPixmap
6567
}
6668

6769
CFRelease(windowList);
70+
#endif
6871
return pixmap;
6972
}

0 commit comments

Comments
 (0)