Open Mr-Zqr opened 10 months ago
I further tested the source code and found that in my Ubuntu system, when the mouse cursor reaches the rightmost of the screen, QCursor.pos()
returns 2559.
However in the "flow.py", self.rightmost_edge
returns 2560, causing the application failed to switch channel. After I changed the value of self.rightmost_edge
to 2559, the mouse and keyboard successfully switched back to Windows PC.
Do you want to fix the problem in source code with creating pull request?
Hi meliksah,
Firstly, I have to thank you for this elegant solution. This script works perfectly on my windows PC, making my mouse and keyboard flow seamlessly from Windows to Ubuntu.
However, errors encountered when I tried to run the script on a Ubuntu computer.
At first I tried to run the release version for Ubuntu directly, but encountered incompatibility in GLIBCXX_3.25 since I am running Ubuntu20.04.
Then, I pulled the repo and compiled my own distribution using
When I executed the compiled file in
dist/
, after a few lines of information output, the program stuck and could not be exited usingCtrl+C
and nothing appeared on the top right corner of my screen. By the way, the XDG path statement still pops up even after I exported it.Finally, I tried to run the application from source by
But the following error poped up:
When I ran the script with
the application successfully booted and I could visit the panel on the top right corner. But, the mouse and keyboard did not flow back to Windows computer as expected.
What am I missing? What should I do to complete the flow? I am looking forward for your kind reply.