Skip to content

Commit

Permalink
fix instant abort
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKratz committed Nov 3, 2023
1 parent 5b84be1 commit ff11227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static inline uint32_t get_front_window() {
CFTypeRef query = SLSWindowQueryWindows(cid, window_list, window_count);
if (query) {
CFTypeRef iterator = SLSWindowQueryResultCopyWindows(query);
if (iterator) {
if (iterator && SLSWindowIteratorAdvance(iterator)) {
wid = SLSWindowIteratorGetWindowID(iterator);
CFRelease(iterator);
}
Expand Down

0 comments on commit ff11227

Please sign in to comment.