Opticos / GWSL-Source

The actual code for GWSL. And some prebuilt releases.
https://opticos.github.io/gwsl/
Other
1.16k stars 80 forks source link

Stuck keys when editing text files #15

Open bvzakharin opened 3 years ago

bvzakharin commented 3 years ago

This is the same issue as VcXsrv https://sourceforge.net/p/vcxsrv/bugs/59/ However, the workaround described there (clicking on the X icon) does not work in GWSL. I realize that GWSL is based on VcXsrv, so probably can't fix the issue itself, but is there at least a workaround like there is in VcXsrv? Otherwise I'm forced to kill either X or WSL in general every time this happens.

Pololot64 commented 3 years ago

I am trying to think of a workaround. Unfortunately the system tray menu in GWSL is completely different than the one in VCXSRV. I could do it programmatically if there was a more clear reason of why the fix works but I cannot think of a way to fix it in the morning. There might possibly be a workaround now that I think about it... It will be possible in a future version of GWSL though. I am extending configurability so it will be possible that both the GWSL and VCXSRV menus show up in the system tray. This would be weird and some of the options may conflict but at least it would give a way out of the stuck keys.

Pololot64 commented 3 years ago

Now this can be fixed in 1.3.7 using xserver profiles. You can create a profile with the desired vcxsrv flags. This is accessible in the systray right-click menu. Just create a profile with the desired arguments (by default -wgl -compositewm -multiwindow -clipboard) and uncheck "Hide vcxsrv systray icon". If you switch to this profile, the clickable vcxsrv systray will also be visible.

kfiatos commented 3 years ago

@bvzakharin were you able to go around this problem?