From e2aecbf9d4a60f12a48b80d688a6d4ec8e1a2291 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 5 Jan 2026 23:27:18 +0900 Subject: [PATCH] this should be more correct --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index d47e3b8..d9a5d65 100644 --- a/src/core.c +++ b/src/core.c @@ -799,7 +799,7 @@ void MwGetScreenSize(MwWidget handle, MwRect* rect) { } int MwGetCoordinateType(MwWidget handle) { - if(handle->parent == NULL) { + if(handle->parent == NULL || handle->parent->lowlevel == NULL) { return handle->lowlevel->common.coordinate_type; } else { return MwCoordinatesLocal;