-
Notifications
You must be signed in to change notification settings - Fork 155
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
Cursor autohide feature #403
Comments
There is setAutoHideCursor in qtermwidget, but for that to work you will need to link to KDE. I guess it will be a lot of work to implement hiding in lxqt natively. Easier to stick with KDE or GTK terminals. |
KWidgetsAddons is also in Tier 1, so depending on it will not be a big problem. Of course it's better to be optional to avoid issue on platforms where KF5 is not fully supported (e.g., macOS). |
Yes tier-1 K-things are nice extensions of Qt that don't depend on KDE. I think we could use them in LXQt if really needed -- as we use |
Why does that need some KDE stuff? Alternatively (just seeing this in phototonic) you could poll the mouse position (not sure whether I'm gonna replace that during the alpha cycle, but I'm pretty sure that's gonna leave there at some point ;) |
You're right: there's no need to any KDE stuff for that. At the time this report was opened, I was rather a bystander (and a user) here. Months ago, I started to maintain qterminal and qtermwidget, went through their bug trackers to find the most important reports, and fixed them. Sadly, I can't check all valid reports, being busy with several other codes. Contributions are really appreciated. |
Preferably in qterminal or qtermwidget? |
Wherever you see fit — I'm confident of your coding skills, having seen your codes and used some of them in Kvantum.
|
@luebking Have a look at TerminalDisplay.cpp/TerminalDisplay.h in qtermwidget. It already tracks mouse move events. What we could do is use a QBasicTimer (preferable) or a QTimer to measure the idle time. The moment we observe any movement (mouseMoveEvent/enterEvent) restart the timer. If the mouse leaves the widget (leaveEvent), stop the timer, and restart it when the mouseEnters it again. This is a rather rough idea based on your comments, and a quick glance at the code. You may have to figure out some of the finer details and edge cases. Edit: |
@tsujan It will be hassle to implement it in qterminal. The mouse should be hidden only when it's inside the qtermwidget. So I think it is better to implement the |
It's OK with me. What can I say when two competent devs agree on something? |
This patch needs lxqt/qtermwidget#582. The new option is in Preferences → Behavior. It can be from "Never" to 60 seconds. A value of zero hides the cursor immediately (as designed by @luebking). Closes #403
This patch needs lxqt/qtermwidget#582. The new option is in Preferences → Behavior. It can be from "No hiding" to 60 seconds. A value of zero hides the cursor immediately (as designed by @luebking). Closes #403
Can this feature be added? It was very useful when I used vte based terminals. Konsole also has this feature but for my purposes it is a little bit bloated.
The text was updated successfully, but these errors were encountered: