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

Left click deactivates current tab #1505

Closed
Maximus5 opened this issue Jul 31, 2015 · 28 comments
Closed

Left click deactivates current tab #1505

Maximus5 opened this issue Jul 31, 2015 · 28 comments

Comments

@Maximus5
Copy link
Owner

Originally reported on Google Code with ID 1505

OS version: Win7   SP1   x64
ConEmu version: 140304[64]

*Bug description*
Left clicking in a Putty console activates previous tab.

*Steps to reproduction*
1. Open multiple Putty consoles.
2. Go to last tab.
3. Left click anywhere in the console window.
4. Previous tab is activated and focus is moved to it.

Note: I use Tasks to open multiple sessions on startup.


Reported by alisufian on 2014-03-11 08:46:39

@Maximus5
Copy link
Owner Author

1. Attach your config (ConEmu.xml)
2. Run "ConEmu64 /log"
3. Attach full screen screenshot before click (show where you mouse was) and after
click
4. Attach LogFiles

Reported by ConEmu.Maximus5 on 2014-03-11 09:58:58

@Maximus5
Copy link
Owner Author

1. Attach your config (ConEmu.xml)
2. Run "ConEmu64 /log"
3. Attach full screen screenshot before click (show where you mouse was) and after
click
4. Attach LogFiles

Reported by ConEmu.Maximus5 on 2014-03-11 09:59:04

@Maximus5
Copy link
Owner Author

Hi,

Log files attached.
Couldn't find ConEmu.xml. Found Background.xml, ConEmu_MinGW.xml, ConEmu_Sample.xml,
ConEmu_Tilde.xml.
The mouse pointer stays at the same place. It doesn't move. If I was trying to select
text the selection does happen.
The issue started happening only after the last upgrade.

Thanks.

Reported by alisufian on 2014-03-12 08:50:28


- _Attachment: [logs.zip](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1505/comment-3/logs.zip)_

@Maximus5
Copy link
Owner Author

Settings -> Export -> ConEmu.xml

Reported by ConEmu.Maximus5 on 2014-03-12 08:54:13

@Maximus5
Copy link
Owner Author

settings xml attached.

Reported by alisufian on 2014-03-12 10:15:54


- _Attachment: [ConEmu.zip](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1505/comment-5/ConEmu.zip)_

@Maximus5
Copy link
Owner Author

And how about screenshots and conemu_tasks.txt file?

Reported by ConEmu.Maximus5 on 2014-03-12 13:16:06

@Maximus5
Copy link
Owner Author

tasks file attached. Let me see what I can do for the screenshots.

Reported by alisufian on 2014-03-12 13:55:04


- _Attachment: [conemu_tasks.txt](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1505/comment-7/conemu_tasks.txt)_

@Maximus5
Copy link
Owner Author

screenshots. before and after mouse left click.

Reported by alisufian on 2014-03-12 14:15:26


- _Attachment: Before_Click.png
![Before_Click.png](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1505/comment-8/Before_Click.png)_ - _Attachment: After_Click.png
![After_Click.png](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1505/comment-8/After_Click.png)_

@Maximus5
Copy link
Owner Author

And WHERE that click was happened?

Reported by ConEmu.Maximus5 on 2014-03-12 14:36:47

@Maximus5
Copy link
Owner Author

Anywhere in the console window. The precise location doesn't matter.

Reported by alisufian on 2014-03-13 06:05:29

@Maximus5
Copy link
Owner Author

140403?

Reported by ConEmu.Maximus5 on 2014-04-04 07:36:11

@Maximus5
Copy link
Owner Author

I've moved to OS X. I'll try to test the new build as soon as I get my hands on a windows
machine.

Reported by alisufian on 2014-04-18 17:26:07

@Maximus5
Copy link
Owner Author

This is happening for me too on the latest build: v2014.04.22

Reported by dave@openanswers.co.uk on 2014-05-09 15:36:19

@Maximus5
Copy link
Owner Author

and on the latest alpha: 140505

Reported by dave@openanswers.co.uk on 2014-05-09 15:42:43

@Maximus5
Copy link
Owner Author

Attach LogFiles

Reported by ConEmu.Maximus5 on 2014-05-09 16:14:03

@Maximus5
Copy link
Owner Author

I ran 4 putty sessions, the first from ConEmu64.exe /cmd, the next three using ConEmuC.exe
/C , using /Log3 on all 4 sessions.  Left clicking on the fourth session caused it
to switch to the third session.

The log files attached, let me know if you need any more tests or logging.

Kind Regards 
David

Reported by dave@openanswers.co.uk on 2014-05-09 21:44:10


- _Attachment: [ConEmu-logs.zip](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1505/comment-16/ConEmu-logs.zip)_

@Maximus5
Copy link
Owner Author

@dave@openanswers.co.uk

do not understand how you run 2+ intances. "using ConEmuC.exe /C"?

does it happens if first instance is running with "ConEmu -basic -cmd putty"?
Take a look at 32-bit GUI and/or "-basic" switch.

Also, does it happens if you are not loading presaved session, but only enter server
address in address box? I mean, your putty saved config may cause different behavior
than on my PC.

At last, does it happens if you run only two instances? Three? I need to minimize repro
conditions.

Reported by ConEmu.Maximus5 on 2014-05-12 07:19:46

@Maximus5
Copy link
Owner Author

Hi 

So the precise sequence is as follows:

1) C:\apps\ConEmu\ConEmu64.exe /cmd "C:\apps\PuTTY\putty.exe" -new_console -load "saved-session"

Then wait ( I allow 2 secs  - but this can be any period of time) for ConEmu to start
and the putty session to load ( I'm using ssh keys, so this logs me straight into the
host ).

2) Run the following command at least twice ( very quickly - from a script )

C:\apps\ConEmu\ConEmu\ConEmuC.exe /C "C:\apps\PuTTY\putty.exe" -new_console -load "saved-session"

Then left click on the last session, and it flips the tab to the second session

This appears to me to be a race condition when running two ( or more ) new sessions
in very quick succession.  If I run multiple copies of the ConEmuC command with a few
seconds between them - I don't see this issue ( or if I don't load a session - and
have to manually enter a hostname ).

Adding /basic made no difference, nor did using the 32bit version ( i.e. the bug still
occurred with both of these versions )

Reported by dave@openanswers.co.uk on 2014-05-12 08:29:50

@Maximus5
Copy link
Owner Author

"Script"? You mean bat/cmd file?
But "-new_console" has no effect outside of ConEmu.
How do you run script?

Reported by ConEmu.Maximus5 on 2014-05-12 09:31:30

@Maximus5
Copy link
Owner Author

Yes - exactly. From a .bat file:

C:\TEMP>more test.bat
C:\apps\ConEmu\ConEmu\ConEmuC.exe /C "C:\apps\PuTTY\putty.exe" -new_console -load "saved-session"
C:\apps\ConEmu\ConEmu\ConEmuC.exe /C "C:\apps\PuTTY\putty.exe" -new_console -load "saved-session"
C:\TEMP>

Reported by dave@openanswers.co.uk on 2014-05-12 09:50:55

@Maximus5
Copy link
Owner Author

Uploading sample batch file

Reported by dave@openanswers.co.uk on 2014-05-12 09:58:30


- _Attachment: [test.bat](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1505/comment-21/test.bat)_

@Maximus5
Copy link
Owner Author

I see, reproduced

Reported by ConEmu.Maximus5 on 2014-05-12 10:08:47

  • Status changed: Accepted

@Maximus5
Copy link
Owner Author

Anyway, that is wrong way to run bunch of tabs.
Use -cmdlist instead of -cmd
One command, exact order, no bugs.

Reported by ConEmu.Maximus5 on 2014-05-12 16:20:34

@Maximus5
Copy link
Owner Author

Anyway, that is wrong way to run bunch of tabs.
Use -cmdlist instead of -cmd
One command, exact order, no bugs.

Reported by ConEmu.Maximus5 on 2014-05-12 16:20:52

@Maximus5
Copy link
Owner Author

Sorry - I was using the batch file to illustrate the issue - it's not my actual use
case.

In reality - I am creating the first tab, then adding a few more sessions.   Then sometime
later I want to add a few more tabs to the same parent window.  So I can't pass the
cmdlist at window start time - as I want to add additional tabs later on.

Reported by dave@openanswers.co.uk on 2014-05-12 16:30:56

@Maximus5
Copy link
Owner Author

If you want to add tabs, you still can use -cmdlist

ConEmu64.exe -single -cmdlist PuTTY ||| PuTTY

Workaround, yeah...

Reported by ConEmu.Maximus5 on 2014-05-12 16:34:11

@Maximus5
Copy link
Owner Author

140519

Reported by ConEmu.Maximus5 on 2014-05-20 08:00:29

  • Status changed: Fixed

@Maximus5
Copy link
Owner Author

Many thanks - that fix works for me

Reported by dave@openanswers.co.uk on 2014-05-20 08:20:03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant