-
-
Notifications
You must be signed in to change notification settings - Fork 434
[BUG] Cursor Position Loss after ALT+TAB Context Switch on WSL2 #3279
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
Comments
Hm, I haven't seen that behavior on any platform. 🤔 So where does Windows put the focus in the application? On which widget... |
How did you install QOwnNotes, you never shared the debug output (see issue template)... And I wonder what happens if you are using the Nix package of QOwnNotes on WLS with https://github.com/nix-community/NixOS-WSL. 😊 |
I can't see any focus in the Window at all. The keyboard does absolutely nothing. I Googled for common Windows menu shortcuts like CTRL+F10 and SHIFT+F10. Both work with Evince, but do nothing with QOwnNotes. (Btw. WSL2 is now open source; and included in all versions of Windows 11.) If an APT package is unavailable, I tend to build from source. For QOwnNotes (with Qt6 already installed):
I thought now that maybe it's Qt, so I tried:
...and the same issue is there. |
I guess you are using Ubuntu Linux? There is a Qt6 repository, see https://www.qownnotes.org/installation/ubuntu.html. |
If even the Qt examples have this issue (and Qt Creator too) I'm sure the version in that repo will be the same. F4 works. |
So I guess there is not much I can do about it... |
Btw. is your employer monitoring running processes or just not allowing to install software? |
Uh oh!
There was an error while loading. Please reload this page.
As QOwnNotes is not on my employer's approved software list, on my Windows machine I build it under WSL2. (I use WSL2 a lot.) I've done this for a few years, and I'm happy with it. I have a shortcut I can click to launch it. Something like
"C:\Program Files\WSL\wslg.exe" -d Ubuntu --cd "~" -- /home/XXXXXXXX/QOwnNotes/install/bin/QOwnNotes
. It's QOwnNotes 25.4.3 btw. There is one small issue:Expected behaviour
When I switch back to QOwnNotes from another application (via ALT+TAB or clicking the taskbar icon with the mouse), the program should remember my last window panel, and cursor position. e.g. If I start typing, text should appear at the last place my cursor was.
Actual behaviour
When I switch back to QOwnNotes from another application (e.g. by using ALT+TAB twice), the program has lost track of my last cursor position. I have to use the mouse, and click in the main note window, and try to remember where/what I was last writing.
I expect relatively few people are using WSL2 for GUI apps, so I was also curious if this is a WSL2 issue. I tried Evince (installed via APT as in
sudo apt-get install evince
), and identified that Evince does not have this issue. One can open a pdf with Evince, and click the top left button to show the side pane. By clicking in the side pane one can press UP/DOWN to move from page to page. The side pane is still active after a pair of ALT+TAB keypresses. Clicking instead in Evince's main pdf view, lets UP/DOWN now traverse the pdf with finer granularity (almost line-by-line); and a pair of ALT+TAB keypresses causes no problem here eitherSteps to reproduce
The text was updated successfully, but these errors were encountered: