cosmos72 / twin

Text mode window environment. A "retro" program for embedded or remote systems, that doubles as X11 terminal and text-mode equivalent of VNC server
Other
654 stars 38 forks source link

compiled in w11 wsl 1 -> Bug ? #92

Closed fherking closed 1 year ago

fherking commented 1 year ago

Hello, I compiled the source in oracle linux 9.1 running in windows wsl version 1, I can launch the program via params --hw=X11, and all is ok, but windows inside twin doesn't change depth automatically ( I have to use raise/lower to change window position ).

It's a bug, a feature, or an error by my side? Ï am missing any library in compilation?

Ask me for info if needed (libs installed , etc).

Awesome useful piece of code by the way...

cosmos72 commented 1 year ago

I am somewhat impressed it works at all in WSL.

It's a feature: focusing a window does not raise it automatically: you need to either select "Raise/Lower" from the menu or click on the window button with two vertical arrows.

If you want focusing a window to auto-raise it, you'll need to copy the file system.twinrc found in the sources to your $HOME/.twinrc and customize it.

fherking commented 1 year ago

Ok. I thought I was missing some library in compilation , thanks for the info, I made it work...

How it works in wsl (install dependencies) -> compile and launch twin with :

twin --hw=X11

and use a X11 desktop server like xming for displaying.

I attach the click for on top solution info in case some one needs this option ->

first : cp /usr/local/etc/twin/twinrc -> $home/.config/twin/twinrc

edit the file and add the following line:

Mouse H1 I Raise

fherking commented 1 year ago

thanks for all cosmos