From 17feb4a64e3557662ed8480400a7d776e2be691f Mon Sep 17 00:00:00 2001 From: Taylor Howell Date: Fri, 3 Jul 2026 12:09:50 -0700 Subject: [PATCH] Update Studio to close window PiperOrigin-RevId: 942216322 Change-Id: I96b4665016df0acb0c5dec9caae27eeb9a87f874 --- src/experimental/platform/hal/window.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/experimental/platform/hal/window.cc b/src/experimental/platform/hal/window.cc index c3e0facd..2422d974 100644 --- a/src/experimental/platform/hal/window.cc +++ b/src/experimental/platform/hal/window.cc @@ -228,6 +228,8 @@ Window::Status Window::NewFrame() { int drawable_height = height_; SDL_GL_GetDrawableSize(sdl_window_, &drawable_width, &drawable_height); scale_ = (float)drawable_width / (float)width_; + } else if (event.window.event == SDL_WINDOWEVENT_CLOSE) { + should_exit_ = true; } } else if (event.type == SDL_DROPFILE) { drop_file_ = event.drop.file;