-
Notifications
You must be signed in to change notification settings - Fork 13
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
Screensaver timeout not reset on mouse click #11
Comments
It appears that there may be a bug. Would you like to take a look and see if you can fix it? Here is the link for reference: qt-kiosk-browser/inputeventhandler.cpp Line 13 in 5250ae5
|
Otavio, Note also that all our content is generated by JavaScript in case this is relevant. It seems to be depending on the type of input device used:
For our use case I would then replace MouseButtonPress by TouchBegin but I doubt this is a generic solution. BR, Chris |
As far as I know, since it's an input device, it might be feasible to incorporate it into the reset procedure. Could you also provide a physical keyboard case and submit a pull request, please? |
I think I'm hitting this bug too. Any idea how to fix? |
I got it working by the below. This way, both, touch screen and external physical keyboard keypresses reset the screensaver time. diff --git a/inputeventhandler.cpp b/inputeventhandler.cpp #include InputEventHandler::InputEventHandler(QQuickItem *parent): QObject(parent) bool InputEventHandler::eventFilter(QObject *obj, QEvent *event)
|
Thanks! |
Currently it seems that the screensaver timer is only reset if a keyboard input is detected:
line 186 in main.qml:
InputEventHandler {
onTriggered: {
screenSaverTimer.restart();
}
I'm using qt virtual keyboard as input device and when I simply touch the screen or touch a button/menu items of the GUI the timer is not reset. It's only reset if I select an input field and enter actual text.
Is this intended or a bug?
BR, Chris
The text was updated successfully, but these errors were encountered: