Skip to content

Commit cfd4df9

Browse files
committed
Merge pull request #81 from tribal-tec/master
Quickfix for startup-deadlock after #79
2 parents f34b5b7 + a079a41 commit cfd4df9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/DesktopStreamer/DesktopWindowsModel.mm

+5-1
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,12 @@ void reloadData()
262262
bool _addApplication( NSRunningApplication* app, CFArrayRef windowList )
263263
{
264264
const QString& appName = NSStringToQString([app localizedName]);
265-
if( appName == "SystemUIServer" || appName == "Dock" )
265+
const auto& pid = [app processIdentifier];
266+
if( appName == "SystemUIServer" || appName == "Dock" ||
267+
pid == QApplication::applicationPid( ))
268+
{
266269
return true;
270+
}
267271

268272
NSArray* windows = getWindows( app, windowList );
269273

0 commit comments

Comments
 (0)