-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using KDE Connect remote control doesn't make the cursor visible #25
Comments
Can you please check the output of |
here i move the mouse first and then do a two finger scroll: MotionNotify event, serial 25, synthetic NO, window 0x3a00001, MotionNotify event, serial 25, synthetic NO, window 0x3a00001, ButtonPress event, serial 25, synthetic NO, window 0x3a00001, ButtonRelease event, serial 25, synthetic NO, window 0x3a00001, |
I assume the problem here is that no raw events are emitted. I don't really know what we can do against that – we don't listen for MotionNotify because selecting these events breaks many applications, in particular browsers. |
KDE Connect uses QCursor::setPos() from Qt. I don't think this is a bug in Qt, though.... KDE apps that hide the mouse cursor when you type (eg: Konsole, Kate) do manage to make it visible again when you use KDE Connect to move the cursor. Most likely, they check something like |
The fundamental way unclutter-xfixes works is by using raw events over normal events and over polling the mouse position (and by using the xfixes extension over other things). I don't want to constantly poll the mouse position because it generates a constant CPU load. And selecting normal mouse events causes severe problems with certain applications. I'm open for other ways if we can find a reasonable one. |
How can I generate an event so that unclutter realizes that the cursor should be made visible? |
Perhaps through the XTEST extension, but I'm not sure that works properly for raw events. I'd also be open to implementing signal handlers for this. |
We already include XTest, so if you can tell me which event should I send to make the cursor visible I can easily add it. |
You'd have to send RawMotion and RawButtonPress, see the last function here: https://github.com/Airblader/unclutter-xfixes/blob/master/src/event.c (the file is overall pretty simple and a little but above you'll find how we currently detect relevant events). I'm not entirely sure if emitting these events could interfere with other things, so you'll have to test that. |
Is there an open issue in KDE Connect for this? It would make more sense to track it there, I think. |
I had a very similar issue with specific capacitive screens and had to adjust for that. You may want to check out #29 and see if it helps in this case as well. |
This does work on vanilla unclutter, not on unclutter-xfixes. Just an observation. |
the fact that it uses QCursor doesn't matter, unclutter doesn't unhide even when calling I've tried calling For some reason Synergy works, though, so might want to look into what that is doing. edit: never mind, I don't know why it didn't work earlier (I probably forgot to rebuild), but |
Looks like only tapping can bring up the cursor. Moving/scrolling keeps the cursor hidden.
The text was updated successfully, but these errors were encountered: