There was an error while loading. Please reload this page.
2 parents dc3ef43 + 70c8155 commit 9f8d5c7Copy full SHA for 9f8d5c7
1 file changed
RGFW.h
@@ -14388,6 +14388,11 @@ RGFW_monitor* RGFW_window_getMonitor(RGFW_window* win) {
14388
}
14389
14390
14391
+ if (node == NULL) {
14392
+ node = _RGFW->monitors.primary ? _RGFW->monitors.primary : _RGFW->monitors.list.head;
14393
+ }
14394
+
14395
+ if (node == NULL) return NULL;
14396
return &node->mon;
14397
14398
0 commit comments