We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d2a07 commit 75920abCopy full SHA for 75920ab
ui/app/toolkits/qt/platforms/macos/MacOSDesktopWindow.cc
@@ -35,6 +35,8 @@ MacOSDesktopWindow::get_desktop_image() -> QPixmap
35
{
36
QPixmap pixmap;
37
38
+ // TODO: rewrite using ScreenCaptureKit
39
+#if TODO_REWRITE
40
CFArrayRef windowList = CGWindowListCopyWindowInfo(kCGWindowListOptionAll /*OnScreenOnly*/, kCGNullWindowID);
41
CFIndex numWindows = CFArrayGetCount(windowList);
42
@@ -65,5 +67,6 @@ MacOSDesktopWindow::get_desktop_image() -> QPixmap
65
67
}
66
68
69
CFRelease(windowList);
70
+#endif
71
return pixmap;
72
0 commit comments