linuxmint / xreader

A generic Document Reader
GNU General Public License v2.0
216 stars 61 forks source link

Viewmode Changes to Dual After Waking From Sleep #596

Open Carl864 opened 1 year ago

Carl864 commented 1 year ago
 * Xreader version 3.6.3
 * Distribution - Linux Mint 21.1 Cinnamon

Issue: When waking the PC from sleep, any multipage document that was open will be in dual view (View>Dual - Even Pages Left), even if it was in single page view when it went to sleep.

Reproduction: Open a multipage document and ensure the view mode is single. View>Dual - Even Pages Left is unchecked. Put the PC to sleep. Wake the PC. The view will be set to dual again.

Expected behavior: The document would stay in single view mode after waking from sleep.

Carl864 commented 1 year ago

Upon further testing, it seems the issue is that Xreader captures keyboard input even when the login screen is present, and the password I was using to wake the machine contained a D which was the hotkey to change the viewmode. This might be an even bigger issue for security reasons. If Xreader is open and has a text prompt with focus, such as the Find function, after waking from sleep all typed input will be in the Find text box, including the password that was just used to unlock the PC.