fix: Pass ClientScrollDirection to EiScreen - #8896
Conversation
|
Nice, I will test. Are there any issues we can mark fixed with this? Repro steps for the bug would make testing a bit easier for us poor maintainers :D Edit: Would you mind fixing the lint issue? Let me know if you want me to do this. |
CI SummaryLint result❌ 🛠️ Please either run diff --git a/src/lib/deskflow/ClientApp.cpp b/src/lib/deskflow/ClientApp.cpp
index 0cfb83c..e0a2199 100644
--- a/src/lib/deskflow/ClientApp.cpp
+++ b/src/lib/deskflow/ClientApp.cpp
@@ -170,7 +170,9 @@ deskflow::Screen *ClientApp::createScreen()
if (deskflow::platform::isWayland()) {
#if WINAPI_LIBEI
LOG_INFO("using ei screen for wayland");
- return new deskflow::Screen(new deskflow::EiScreen(false, getEvents(), true, args().m_clientScrollDirection), getEvents());
+ return new deskflow::Screen(
+ new deskflow::EiScreen(false, getEvents(), true, args().m_clientScrollDirection), getEvents()
+ );
#else
throw XNoEiSupport();
#endifHint: Install the right version of Full summary (scroll down) |
Thanks for the feedback! I've fixed the linting issues. The reproduction steps are straightforward:
Before this fix: The scroll direction remained unchanged regardless of the setting. I've searched the existing open issues, but I couldn't find anyone else who has reported this. |
sithlord48
left a comment
There was a problem hiding this comment.
Your second commit should not be in this pr correct the lint by commit --append the fix.
|
Ohh no, I mistakenly closed this pr, let me check how to reopen. |
Thanks for your help! |
Damn, I knew I'd miss something. I'm pretty bad at checking individual commits (I usually use the 'Files changed' tab). |
The ClientScrollDirection argument, which controls inverted scrolling, was not being passed to EiScreen. This PR passes args().m_clientScrollDirection to EiScreen, fixing a bug where the "invert scroll direction" option had no effect for Wayland clients.