summaryrefslogtreecommitdiff
path: root/Userland/Demos/Screensaver/Screensaver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Demos/Screensaver/Screensaver.cpp')
-rw-r--r--Userland/Demos/Screensaver/Screensaver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Demos/Screensaver/Screensaver.cpp b/Userland/Demos/Screensaver/Screensaver.cpp
index 1ee8e3e31f..0c09f03c0c 100644
--- a/Userland/Demos/Screensaver/Screensaver.cpp
+++ b/Userland/Demos/Screensaver/Screensaver.cpp
@@ -52,18 +52,18 @@ void Screensaver::mousemove_event(GUI::MouseEvent& event)
if (m_mouse_origin.is_null()) {
m_mouse_origin = event.position();
} else if (event.position().distance_from(m_mouse_origin) > max_distance_move) {
- ::exit(0);
+ GUI::Application::the()->quit();
}
}
void Screensaver::mousedown_event(GUI::MouseEvent&)
{
- ::exit(0);
+ GUI::Application::the()->quit();
}
void Screensaver::keydown_event(GUI::KeyEvent&)
{
- ::exit(0);
+ GUI::Application::the()->quit();
}
void Screensaver::paint_event(GUI::PaintEvent& event)