adding proper window close functionality

This commit is contained in:
2026-03-09 22:28:21 +01:00
parent 61dcb0430a
commit 661c91401f
6 changed files with 12 additions and 5 deletions
+3 -1
View File
@@ -40,7 +40,9 @@ void Window::setFocused(PView view) {
gfxHandle->setMouseButtonCallback(mouseButtonFunction);
gfxHandle->setScrollCallback(scrollFunction);
gfxHandle->setFileCallback(fileFunction);
gfxHandle->setCloseCallback([this]() { owner->notifyWindowClosed(this); });
gfxHandle->setCloseCallback([this]() {
owner->notifyWindowClosed(this);
});
}
void Window::onResize(uint32 width, uint32 height) {