diff options
author | Filiph Sandström <filiph.sandstrom@filfatstudios.com> | 2022-11-30 13:45:35 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-04 19:32:43 +0000 |
commit | 5a083c03a62e9ad1595995a847007cc47b14bef7 (patch) | |
tree | e701f6fd010fe0e91f1decb3775e241a03ae1123 /Userland/Services/WindowServer/ConnectionFromClient.cpp | |
parent | bef9ad4e44eb81c16b02b2f3246c28fab8692746 (diff) | |
download | serenity-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.cpp | 10 |
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) |