Skip to content

Commit 9f8d5c7

Browse files
Merge pull request #477 from robo-monk/main
2 parents dc3ef43 + 70c8155 commit 9f8d5c7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

RGFW.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14388,6 +14388,11 @@ RGFW_monitor* RGFW_window_getMonitor(RGFW_window* win) {
1438814388
}
1438914389
}
1439014390

14391+
if (node == NULL) {
14392+
node = _RGFW->monitors.primary ? _RGFW->monitors.primary : _RGFW->monitors.list.head;
14393+
}
14394+
14395+
if (node == NULL) return NULL;
1439114396
return &node->mon;
1439214397
}
1439314398

0 commit comments

Comments
 (0)