From 2316c1bf5f939213919ecb447506ec03c8ae175b Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Sun, 1 May 2022 11:37:34 -0500 Subject: [PATCH] Slightly tweak window behavior --- src/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 72c9748..09eb1e4 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -14,9 +14,10 @@ MainWindow::MainWindow() : BWindow(BRect(BPoint(0,0),BSize(500.0, 500.0)), "MediaMonitor", - B_TITLED_WINDOW, B_AUTO_UPDATE_SIZE_LIMITS) + B_TITLED_WINDOW, B_AUTO_UPDATE_SIZE_LIMITS | B_QUIT_ON_WINDOW_CLOSE) { SetPulseRate(0); + CenterOnScreen(); _InitInterface(); }