You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mintty 2.8.2 + ConEmu - Cannot select text after losing focus #724
Note:: Mintty has been acquired via cygwin in all instances here.
I'm submitting this as a mintty bug as I have confirmed the problem is not present on mintty 2.8.1, but IS on 2.8.2. I have tested this on two separate PC's, with fresh installs of cygwin+mintty.
When running mintty 2.8.2 within ConEmu, you lose the ability to select text once the window loses focus. I have found no way to restore this ability to an active terminal. Mintty on its own does no suffer from this bug.
See #717; a change was made on purpose to prevent accidental selection (and thus losing previous selection) when you actually just want to refocus mintty.
So you should be able to click into mintty, then select with another click. This is considered "a feature, not a bug".
I have the same issue after the update. Text selection capability goes away after refocus. I tried selecting after a click and it still doesn't work. Please advice on how the feature works.
PS: I tested with cmd and powershell as well. The problem is only in Babun tabs.
It seems the root cause is ConEmu's incompatible usage of the WM_MOUSEACTIVATE message which should not be sent on every mouse click. Mintty now uses it to prevent mouse focus from accidentally selecting text already. Disabled for ConEmu as a workaround.
This is a bit off topic, but I was using ConEmu too (with msys(1) and cmd.exe top shell windows - so not mintty in ConEmu), and moved to mintty with tmux-in-mintty, and haven't looked back. It gives me everything I used ConEmu for, and more, and has, IMO nicer integration of the window/terminal management and the terminal.
It does require setting up a new thing, which could take a while until you have everything to your liking, but for me it was well worth the effort.
Regardless though, making sure mintty and ConEmu can play nice together would be good anyway.
I just upgraded to mintty 2.8.4 and conemu 18.2.6.0. I have the child gui setting checked "Focus in child windows". This has changed one thing. I can now double click on a line, and get a highlight over it inside mintty. However Click + Drag for selection of the text still doesn't work. ConEmu/ConEmu#1382
Click + Drag for selection of the text still doesn't work. ConEmu/ConEmu#1382
See my comment there; the child application is getting sent a WM_MOUSEACTIVATE message every time a mouse button is clicked, independently of the "Focus in child windows" setting.
If I feel like it, I make check for another ConEmu-specific workaround...
Activity
mintty commentedon Dec 21, 2017
See #717; a change was made on purpose to prevent accidental selection (and thus losing previous selection) when you actually just want to refocus mintty.
So you should be able to click into mintty, then select with another click. This is considered "a feature, not a bug".
chanux commentedon Dec 21, 2017
First of all thanks for the great work!
I have the same issue after the update. Text selection capability goes away after refocus. I tried selecting after a click and it still doesn't work. Please advice on how the feature works.
PS: I tested with cmd and powershell as well. The problem is only in Babun tabs.
mintty commentedon Dec 21, 2017
How would a working session/"new console" configuration entry in ConEmu actually look like?
chanux commentedon Dec 21, 2017
Hope this is what you are asking for
%userprofile%\.babun\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/zsh.exemintty commentedon Dec 21, 2017
[That's not what I was asking for; I had the problem that Transparency spoils mintty display in ConEmu...]
workaround for ConEmu focus incompatibility (#724); --trace option
mintty commentedon Dec 21, 2017
It seems the root cause is ConEmu's incompatible usage of the WM_MOUSEACTIVATE message which should not be sent on every mouse click. Mintty now uses it to prevent mouse focus from accidentally selecting text already. Disabled for ConEmu as a workaround.
avih commentedon Dec 21, 2017
This is a bit off topic, but I was using ConEmu too (with msys(1) and cmd.exe top shell windows - so not mintty in ConEmu), and moved to mintty with tmux-in-mintty, and haven't looked back. It gives me everything I used ConEmu for, and more, and has, IMO nicer integration of the window/terminal management and the terminal.
It does require setting up a new thing, which could take a while until you have everything to your liking, but for me it was well worth the effort.
Regardless though, making sure mintty and ConEmu can play nice together would be good anyway.
chanux commentedon Dec 21, 2017
@avih I'd like to use tmux but I use a lot of byobu/tmux on servers I get on. I know there are workarounds but it's not very practical for me.
mintty commentedon Jan 8, 2018
Released 2.8.3.
mintty commentedon Feb 4, 2018
I've revised the tweak to allow other mouse functions.
You may like to check the update.
CMCDragonkai commentedon Feb 7, 2018
mintty commentedon Feb 7, 2018
See my comment there; the child application is getting sent a WM_MOUSEACTIVATE message every time a mouse button is clicked, independently of the "Focus in child windows" setting.
If I feel like it, I make check for another ConEmu-specific workaround...
workaround for ConEmu WM_MOUSEACTIVATE bug (#724)
mintty commentedon Apr 12, 2018
Released 2.8.5 with a workaround.