powerMonitor.getSystemIdleTime() reports user idle on linux when using only keyboard (on Wayland) #27912
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Issue Details
-
Electron Version:
10.0.2
https://github.com/johannesjo/super-productivity/blob/master/package.json#L145 -
Operating System:
Ubuntu 20.10 x64 Wayland -
Last Known Working Electron version:
N/A
Expected Behavior
When user is using only a keyboard (eg: editing files in Vim in running in a terminal emulator) powerMonitor.getSystemIdleTime()
API does not detect this as idle time.
Actual Behavior
powerMonitor.getSystemIdleTime()
detects the user is idle when user is using keyboard only in Vim
To Reproduce
Found this while using Super-Productivity
app on latest release version 6.4.0
from Snap store. Bug filed here:
johannesjo/super-productivity#922
This app is using the powerMonitor
API to detect when a user is idle to notify them after X number of minutes:
https://github.com/johannesjo/super-productivity/blob/03ff2fb0086225b9b56832e308b2751e2afc0f52/electron/main.ts#L146
Using the app I get this idle detection whenever I'm using the keyboard only in Vim for X number of minutes.
Activity