Skip to content
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

Cannot select text on mintty panels with mouse with recent update #1382

Closed
CMCDragonkai opened this issue Dec 29, 2017 · 21 comments

Comments

Projects
7 participants
@CMCDragonkai
Copy link

commented Dec 29, 2017

Versions

ConEmu build: 171109 x64
OS version: Windows 10 x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): cygwin

Problem description

When I begin a new panel, by hitting the + button. I can select text using my mouse.

Once I change to a different tab, and then change back, using mouse doesn't select any text anymore.

This didn't happen on my old version (only with recent update).

This does not happen when I launch a powershell tab panel, only with cygwin mintty panels.

This also happens just when I switch from my ConEmu window to a different window!

Steps to reproduce

  1. Create new tab panel using mintty.
  2. Change to a different tab (perhaps another mintty panel)
  3. Change back
  4. Try to use mouse to select some text

Additional file

Settings: https://gist.github.com/CMCDragonkai/815a64afabc5e51555765903c7816e0b

@Maximus5 Maximus5 added this to To Do in Inspection via automation Jan 2, 2018

@benh57

This comment has been minimized.

Copy link

commented Jan 8, 2018

I have this same problem. Additionally, even running the old version now exhibits the same symptom. Perhaps clearing preferences would fix?

@zhubanRuban

This comment has been minimized.

Copy link

commented Jan 10, 2018

Clearing preferences had no effect.

I can confirm that this issue was resolved after updating Mintty to the recent v.2.8.3 released two days ago (current ConEmu version - 180108):

mintty/mintty#724

@Maximus5

This comment has been minimized.

@benh57

This comment has been minimized.

Copy link

commented Jan 10, 2018

Dunno what Maximus5 is linking to but I verified that the mintty update has fixed the issue. Thanks, zhuban!

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Jan 11, 2018

Three is an option in ConEmu allowing to set focus in ChildGui

@Maximus5 Maximus5 closed this Jan 11, 2018

Inspection automation moved this from To Do to Done Jan 11, 2018

@benh57

This comment has been minimized.

Copy link

commented Jan 11, 2018

Maximus5, I don't think users will know that 'copying text doesn't work' will be fixed by clicking the set focus option buried deep in a settings dialog. They would expect it to just work out of the box like it always has done with cygwin+conemu.

In any case, it's fixed by the mintty workaround for conemu.

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Jan 11, 2018

The problem is that users expect Ctrl-Tab is working out of the box, there were a lot of reports. That's why the option appeared.
Anyway, ChildGui is a side feature with a lot of limitations and I warn users about that in docs.
Console analogues are preferable.

@benh57

This comment has been minimized.

Copy link

commented Jan 11, 2018

Yes i see the docs but I didn't even know 'ChildGui' was a thing. Users just want to be able to use ConEmu as a terminal for cygwin use and have it function. I don't know what 'console analogues are preferable' means.

@benh57

This comment has been minimized.

Copy link

commented Jan 12, 2018

If you want folks to read your tips in the docs, I'd suggest having a section in the docs entitled 'Using ConEmu with Cygwin' with a walkthrough of your suggested best practices for using conemu + cygwin. Looks like you're recommending to run a shell with just 'bash.exe' rather than 'mintty.exe' ?

You have headings entitled 'Delusions' and 'ChildGui' currently, but i dont think most users are going to click into / read those / know what they mean unless they are just clicking randomly through the documentation, or searching for something.

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Jan 12, 2018

Nobody reads docs, I know

Best practice to run cygwin in ConEmu - install ConEmu and just choose the Task precreated for you, e.g. {Bash::Cygwin Bash} . It runs bash.exe which is console application.

I've written about ChildGui and Tasks many times in docs, and I'm sure docs contains all required information. E.g. https://conemu.github.io/en/CygwinMsys.html and subtopics.
If you may suggest improvements - PR are welcome.

About "analogues". Running mintty in ConEmu is something like installing Windows ==> Virtual Box ==> and Windows guest. The guest OS is working, but it has completely different settings and things. Host OS can't do anything with guest OS.

@CMCDragonkai

This comment has been minimized.

Copy link
Author

commented Feb 7, 2018

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.

@mintty

This comment has been minimized.

Copy link

commented Feb 7, 2018

See #1368; 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.

@servergeeks

This comment has been minimized.

Copy link

commented Mar 8, 2018

Hi @Maximus5 ,

Any progress on this ?

PS: You're doing an amazing job with conemu!!!!!!

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Mar 9, 2018

@mintty Checking this issue now on Windows 8.1 and mintty does not receive WM_MOUSEACTIVATE. Selections just does not work... BTW, DoubleClick selects the word, but dragging mouse cursor does nothing.

@servergeeks

This comment has been minimized.

Copy link

commented Mar 9, 2018

@IceMan81

This comment has been minimized.

Copy link

commented Apr 27, 2018

@Maximus5 I see that the issue is closed but the problem still exists. Is this closed because there is no real fix for the issue?

@IceMan81

This comment has been minimized.

Copy link

commented Apr 27, 2018

@Maximus5 Sorry, ignore my comment. Looks like select text works with the latest mintty 2.8.5.

@mintty

This comment has been minimized.

Copy link

commented Apr 27, 2018

Mintty 2.8.5 has a workaround, at the cost of one of its features; this doesn't mean that the conemu issue is fixed.

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Apr 27, 2018

I can only repeat.

ConEmu doesn't send WM_MOUSEACTIVATE message
And I don't see WM_MOUSEACTIVATE in mintty input message queue on any of my PCs

@mintty

This comment has been minimized.

Copy link

commented Apr 28, 2018

You may not be sending it, but mintty receives it,
see #1368 (comment).
There are lots of occurrences of "Activate" and "SetFocus" in the conemu sources (too many for a quick check), what e.g. about ConEmu/TaskBarGhost.cpp: gpConEmu->Activate(mp_VCon) ?

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Apr 28, 2018

TaskBarGhost serves only clicks on the Taskbar aero thumbnails. Of course they don't occurs without user clicks on this thumbnails!

Look, I don't say that you don't receive the event.
I say that ConEmu doesn't send it and I don't see it in mintty GetMessage/PeekMessage queue. I've specially attached debugger to the mintty process and ... nothing.
I can't "fix" something that I don't see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.