summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WindowClient.ipc
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-22 21:13:23 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-22 21:13:23 +0100
commit424a3f5ac3c659d57d38aba36f4062c8ecbc4044 (patch)
treec9b64b14cde9dd11d7b159beff12a89e2e470d2e /Servers/WindowServer/WindowClient.ipc
parentbb70d0692b4aab9ec4cf24cc35abb35e2f8ef2a2 (diff)
downloadserenity-424a3f5ac3c659d57d38aba36f4062c8ecbc4044.zip
WindowServer+LibGUI: Add a way to get notified at display refresh rate
This patch adds GUI::DisplayLink, a mechanism for registering callbacks that will fire at the display refresh rate. Note that we don't actually know the screen refresh rate, but this is instead completely driven by WindowServer's compositing timer. For all current intents and purposes it does the job well enough. :^)
Diffstat (limited to 'Servers/WindowServer/WindowClient.ipc')
-rw-r--r--Servers/WindowServer/WindowClient.ipc2
1 files changed, 2 insertions, 0 deletions
diff --git a/Servers/WindowServer/WindowClient.ipc b/Servers/WindowServer/WindowClient.ipc
index 4e3c077a7d..bd0d690b52 100644
--- a/Servers/WindowServer/WindowClient.ipc
+++ b/Servers/WindowServer/WindowClient.ipc
@@ -35,4 +35,6 @@ endpoint WindowClient = 4
DragDropped(i32 window_id, Gfx::Point mouse_position, String text, String data_type, String data) =|
UpdateSystemTheme(i32 system_theme_buffer_id) =|
+
+ DisplayLinkNotification() =|
}