summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/ConnectionFromClient.cpp
diff options
context:
space:
mode:
authorFiliph Sandström <filiph.sandstrom@filfatstudios.com>2022-11-30 13:45:35 +0100
committerLinus Groh <mail@linusgroh.de>2022-12-04 19:32:43 +0000
commit5a083c03a62e9ad1595995a847007cc47b14bef7 (patch)
treee701f6fd010fe0e91f1decb3775e241a03ae1123 /Userland/Services/WindowServer/ConnectionFromClient.cpp
parentbef9ad4e44eb81c16b02b2f3246c28fab8692746 (diff)
downloadserenity-5a083c03a62e9ad1595995a847007cc47b14bef7.zip
WindowServer: Add "Natural scrolling" support
Also commonly referred to as "reverse scrolling" or "inverted scrolling".
Diffstat (limited to 'Userland/Services/WindowServer/ConnectionFromClient.cpp')
-rw-r--r--Userland/Services/WindowServer/ConnectionFromClient.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/ConnectionFromClient.cpp b/Userland/Services/WindowServer/ConnectionFromClient.cpp
index a715decadb..e5b4e1524a 100644
--- a/Userland/Services/WindowServer/ConnectionFromClient.cpp
+++ b/Userland/Services/WindowServer/ConnectionFromClient.cpp
@@ -1110,6 +1110,16 @@ Messages::WindowServer::GetButtonsSwitchedResponse ConnectionFromClient::get_but
return WindowManager::the().get_buttons_switched();
}
+void ConnectionFromClient::set_natural_scroll(bool inverted)
+{
+ WindowManager::the().set_natural_scroll(inverted);
+}
+
+Messages::WindowServer::IsNaturalScrollResponse ConnectionFromClient::is_natural_scroll()
+{
+ return WindowManager::the().is_natural_scroll();
+}
+
void ConnectionFromClient::set_unresponsive(bool unresponsive)
{
if (m_unresponsive == unresponsive)