mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:47:35 +00:00
WindowServer: Add "Natural scrolling" support
Also commonly referred to as "reverse scrolling" or "inverted scrolling".
This commit is contained in:
parent
bef9ad4e44
commit
5a083c03a6
7 changed files with 39 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue