Maximus5 / conemu-old-issues

Old issues imported from googlecode. Project was moved to
https://conemu.github.io
6 stars 1 forks source link

ConEmu has incorrect Z-order in 'Vista Switcher' Alt-Tab replacement #667

Open Maximus5 opened 9 years ago

Maximus5 commented 9 years ago

Originally reported on Google Code with ID 667

Required information!
OS version: Win7 SP1 x64
ConEmu version: 120617a

*Bug description*
ConEmu has incorrect Z-order in 'Vista Switcher' Alt-Tab replacement. When Vista Switcher
is enabled, Alt-Tabbing away from ConEmu leaves it at the top of the Z-order. Alt-Tab
away from ConEmu, then when you press Alt-Tab again to return, you actually end up
with a different window. I'm not sure if it's a flaw in Vista Switcher, ConEmu or just
a problem between the two...

Workaround: If you enable ConEmu's 'Always on top' option, then disable it again, it
starts working properly with Vista Switcher!

*Steps to reproduction*
1. Install and enable Vista Switcher (http://www.ntwind.com/software/vistaswitcher.html)
2. Open ConEmu and any two other programs. Activate the ConEmu window.
3. Alt-Tab away, then (try to) Alt-Tab back. ConEmu won't be focused -- even though
it should have been -- the third program will be.

Reported by friendbobcat on 2012-08-06 13:14:54

Maximus5 commented 9 years ago
Thought, you may disable "Show on taskbar" checkbox on "Tabs" page.

Reported by ConEmu.Maximus5 on 2012-08-06 18:56:40

Maximus5 commented 9 years ago
Confirmed with 120803 x64.

I disabled "Show on taskbar" and restarted ConEmu. The same behaviour occurs.

Reported by friendbobcat on 2012-08-06 19:41:22

Maximus5 commented 9 years ago
This is probably bug in 'Vista Switcher'. Standard Windows Alt/Win-Tab don't have this
issue.

Reported by inmate66 on 2012-08-07 18:35:59

Maximus5 commented 9 years ago
True, the standard Alt-Tab mechanism doesn't have this problem. But I've been using
Vista Switcher for a while now, and I haven't found any other programs that experience
this problem. Also, why would the problem go away when I set and then unset ConEmu's
'Always on top' option?

Reported by friendbobcat on 2012-08-07 18:53:10

Maximus5 commented 9 years ago
Probably there is a bug in both apps. I think Vista Switcher developer must also be
informed about this problem.

Reported by inmate66 on 2012-08-08 16:12:53

Maximus5 commented 9 years ago
I have reported this problem to author
http://www.ntwind.com/forum/viewtopic.php?f=4&t=2973&sid=731f2b5db9a27b91aa6025022105f6de

Reported by ConEmu.Maximus5 on 2012-08-10 05:38:30

Maximus5 commented 9 years ago
As the Vista Switcher author didn't seem to take any action - would it be feasable to
add a ConEmu option to work around this Vista Switcher bug (e.g. by automatically doing
the "Always on top" toggle workaround)?

Reported by thecybershadow on 2012-10-19 08:14:42

Maximus5 commented 9 years ago
It will be possible, if I'll know the source of the problem. But I don't.

Reported by ConEmu.Maximus5 on 2012-10-19 08:44:37

Maximus5 commented 9 years ago
Forums are currently under construction! Please use email for support: alexander@ntwind.com

Reported by ConEmu.Maximus5 on 2012-10-19 08:51:13

Maximus5 commented 9 years ago
I don't know the source of the problem, but I know the solution:

    enum ID_ALWAYSONTOP = 0xABC5;
    SendMessage(h, WM_SYSCOMMAND, ID_ALWAYSONTOP, 0);
    SendMessage(h, WM_SYSCOMMAND, ID_ALWAYSONTOP, 0);

You probably won't like it, but it works for me :)

Reported by thecybershadow on 2012-10-19 17:41:06

Maximus5 commented 9 years ago
Check new build 121124?

Reported by ConEmu.Maximus5 on 2012-11-25 01:43:39

Maximus5 commented 9 years ago
Sorry, not fixed.

The above fix didn't always work. I added a Sleep(100) between the SendMessage calls,
and since then it's worked all the time.

Reported by thecybershadow on 2012-11-27 01:17:09

Maximus5 commented 9 years ago
still happens in 130104
very annoying

Reported by oleglbch on 2013-01-06 18:18:58

Maximus5 commented 9 years ago
Here is the program I use to work around this issue:

http://dump.thecybershadow.net/29677ee1803f640773fc6543043ce138/conemu_vistaswitcher_fixer.exe
Source: https://gist.github.com/4469536

You can put it in your startup. Note that it needs to be run as administrator to work
on ConEmu instances launched as administrator.

Reported by thecybershadow on 2013-01-06 19:09:35

Maximus5 commented 9 years ago
Issue 776 has been merged into this issue.

Reported by ConEmu.Maximus5 on 2013-01-22 22:44:28

Maximus5 commented 9 years ago
Some changes was made in sources (svn updated).
Build and check, please :)

Reported by ConEmu.Maximus5 on 2013-01-22 22:45:41

Maximus5 commented 9 years ago
Still the same bug with 130120.

Reported by oleglbch on 2013-01-25 19:17:11

Maximus5 commented 9 years ago
Where I've said it was fixed in 130120?

Reported by ConEmu.Maximus5 on 2013-01-25 20:19:02

Maximus5 commented 9 years ago
aren't dev builds based on "Some changes was made in sources (svn updated)." ?

Reported by oleglbch on 2013-01-25 20:28:08

Maximus5 commented 9 years ago
"svn updated" is an invitation to people who [can] build ConEmu from source to do so
and test.

Reported by thecybershadow on 2013-01-25 20:29:04

Maximus5 commented 9 years ago
Obviously, Dev build CAN'T provide fix that was made AFTER it was builded :D

Reported by ConEmu.Maximus5 on 2013-01-25 20:30:15

Maximus5 commented 9 years ago
> Build and check, please :)

Seems to work, thanks!

Reported by thecybershadow on 2013-01-25 20:36:13

Maximus5 commented 9 years ago
New build arrived to public testing )
130128

Reported by ConEmu.Maximus5 on 2013-01-28 22:48:37