jD91mZM2 / xidlehook

GitLab: https://gitlab.com/jD91mZM2/xidlehook
MIT License
387 stars 33 forks source link

Failed to query x for input focus #13

Closed chopfitzroy closed 5 years ago

chopfitzroy commented 5 years ago

Sorry to open so many issues, this should be my last one.

When the timer executes I get the following error before my lock script runs:

warning: failed to query x for input focus

I think this is preventing the fullscreen flag from working.

jD91mZM2 commented 5 years ago

Don't worry about opening many issues, alerting me of this was a very good thing :smile:

I can reproduce this. Seems like I messed the fullscreen detection up! Oof! This line of code is causing the issue. Perhaps I misunderstood the return value of XGetInputFocus

jD91mZM2 commented 5 years ago

Fixed in cbc3302e3485a8308d6ba5dd6b4d069d322908dd! Can you confirm?

chopfitzroy commented 5 years ago

Can confirm this is working :)

jD91mZM2 commented 5 years ago

Awesome, thanks!