From 8b176d3a008e796ebaa036375256411ba15a3f03 Mon Sep 17 00:00:00 2001 From: IoIxD Date: Thu, 16 Apr 2026 00:53:37 -0700 Subject: [PATCH] cmacos: remove parent check oops --- src/backend/classicmacos.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/backend/classicmacos.c b/src/backend/classicmacos.c index 1685415..8745c0c 100644 --- a/src/backend/classicmacos.c +++ b/src/backend/classicmacos.c @@ -7,13 +7,11 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) { MwLLCreateCommon(r); - if(!parent) { - SetRect(&r->cmacos.winRect, 100, 100, width, height); - r->cmacos.window = NewCWindow(nil, &r->cmacos.winRect, (ConstStr255Param) "\p", true, - documentProc, (WindowPtr)(-1), true, 0); - SetPort(r->cmacos.window); - // - } + /* todo: how do we set parent windows? If we can't, what is our equivalant to MacOS's NSViews, Wayland's subsurfaces, etc.? */ + SetRect(&r->cmacos.winRect, x, y, width, height); + r->cmacos.window = NewCWindow(nil, &r->cmacos.winRect, (ConstStr255Param) "\p", true, + documentProc, (WindowPtr)(-1), true, 0); + SetPort(r->cmacos.window); return r; }