Skip to content

Commit

Permalink
chore: fix comment consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jul 23, 2020
1 parent 8126bde commit 85e2eed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions permissions.mm
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ bool HasOpenSystemPreferencesDialog() {
CGWindowListCopyWindowInfo(kCGWindowListOptionAll, kCGNullWindowID);
int numberOfWindows = CFArrayGetCount(windowList);
for (int index = 0; index < numberOfWindows; index++) {
// get information for each window
// Get information for each window.
NSDictionary *windowInfo =
(NSDictionary *)CFArrayGetValueAtIndex(windowList, index);
NSString *windowName = windowInfo[(id)kCGWindowName];
NSNumber *processIdentifier = windowInfo[(id)kCGWindowOwnerPID];

// don't check windows owned by this process
// Don't check windows owned by the current process.
if (![processIdentifier isEqual:ourProcessIdentifier]) {
// get process information for each window
// Get process information for each window.
pid_t pid = processIdentifier.intValue;
NSRunningApplication *windowRunningApplication =
[NSRunningApplication runningApplicationWithProcessIdentifier:pid];
Expand Down

0 comments on commit 85e2eed

Please sign in to comment.