mkotyk / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Ctrl+Tab window switching should work more like Alt+Tab #260

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Add option for Ctrl+Tab to switch to most recently used window

Original issue reported on code.google.com by kleyme...@gmail.com on 22 Apr 2011 at 5:05

GoogleCodeExporter commented 8 years ago
MRU as such would mean that you could switch between the top two mintties only. 
Therefore I'll assume that you're actually looking for behaviour similar to 
Alt+Tab, where pressing Tab repeatedly while holding down Alt will get you to 
the windows lower down.

The reason I didn't implement it that way at the time is that I couldn't think 
of a way to do it, given that each mintty just sees the global list of windows 
and doesn't know how often Tab has been pressed already when it's activated.

Experimenting with this again now, however, I find that it is actually possible 
to bring a window to the front without activating it, even though the 
SetWindowPos documentation appears to suggest otherwise. That should mean that 
the active mintty window can keep track of how often Tab has been pressed with 
Ctrl down while bringing other mintties to the top and putting them back again. 
Only when Ctrl is released, would the new top mintty window be activated.

If I can make this work, I'd simply replace the current behaviour rather than 
add an option, because it makes sense for Ctrl+Tab behaviour to be consistent 
with Alt+Tab.

Original comment by andy.koppe on 23 Apr 2011 at 2:11

GoogleCodeExporter commented 8 years ago
See https://github.com/mintty/mintty/issues/260

Original comment by towom...@googlemail.com on 22 Jul 2015 at 2:12