summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-01-11 19:36:46 +0000
committerAndreas Kling <kling@serenityos.org>2023-01-12 11:25:51 +0100
commit6edc0cf5ab2fce211318b5d4f83e319897b621e5 (patch)
treec79d3dbe9e3bd3fd7f899ce5eb8d924df6c1e506 /Userland/Services/WindowServer
parenta8cf0c9371f7ba500cc4920889bc06d78623e980 (diff)
downloadserenity-6edc0cf5ab2fce211318b5d4f83e319897b621e5.zip
LibCore+Userland: Don't auto-start new Core::Timers
This was unintuitive, and only useful in a few cases. In the majority, users had to immediately call `stop()`, and several who did want the timer started would call `start()` on it immediately anyway. Case in point: There are only two places I had to add a manual `start()`.
Diffstat (limited to 'Userland/Services/WindowServer')
-rw-r--r--Userland/Services/WindowServer/Compositor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Compositor.cpp b/Userland/Services/WindowServer/Compositor.cpp
index cbc49093f2..862d66ccf7 100644
--- a/Userland/Services/WindowServer/Compositor.cpp
+++ b/Userland/Services/WindowServer/Compositor.cpp
@@ -48,7 +48,6 @@ Compositor::Compositor()
1000 / 60, [this] {
notify_display_links();
});
- m_display_link_notify_timer->stop();
m_compose_timer = Core::Timer::create_single_shot(
1000 / 60,
@@ -57,6 +56,7 @@ Compositor::Compositor()
},
this)
.release_value_but_fixme_should_propagate_errors();
+ m_compose_timer->start();
m_immediate_compose_timer = Core::Timer::create_single_shot(
0,
@@ -65,6 +65,7 @@ Compositor::Compositor()
},
this)
.release_value_but_fixme_should_propagate_errors();
+ m_compose_timer->start();
init_bitmaps();
}