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

Alt+Tab from mintty: focus next non-mintty window #1207

Closed
mkq opened this issue Mar 29, 2023 · 7 comments
Closed

Alt+Tab from mintty: focus next non-mintty window #1207

mkq opened this issue Mar 29, 2023 · 7 comments

Comments

@mkq
Copy link

mkq commented Mar 29, 2023

Hello,

I use Ctrl+Tab to switch between mintty tabs. Also, --tabbar=4 makes the minttys mostly feel like tabs of a single window. What's still missing for the single window-like workflow is:

When mintty is focused, Alt+Tab should focus the next window which is not part of the current Ctrl+Tab group (be it a mintty window with another --class or an unrelated window). Could you please make that possible? Maybe this should become option SessionGeomSync=5, but I tend to prefer a separate option.

@mkq
Copy link
Author

mkq commented Mar 29, 2023

If the different mintty "tabs" didn't even show up in Alt+Tab, it would be even better.

Maybe this could be done by hiding all but one with window style WS_EX_TOOLWINDOW. However, it seems that would also get rid of the separate taskbar buttons which I like.

@mintty
Copy link
Owner

mintty commented Mar 29, 2023

Unlike Ctrl+TAB, Alt+TAB is handled directly by Windows, not mintty. So mintty cannot simply choose to do something different. A workaround may be very tricky.

@mkq
Copy link
Author

mkq commented Mar 30, 2023

Yes, I didn't actually mean to intercept Alt+Tab. But whenever a mintty window gets the focus (which it already notices, it seems, since there is an option Looks / Transparency / Opaque when focused), maybe it could put other windows in the same session at the end of the Alt+Tab order. (That seems to be possible, see Autohotkey Winset Bottom; don't know the Windows API counterpart.)

@mintty
Copy link
Owner

mintty commented Apr 12, 2023

Thanks for the hint to WS_EX_TOOLWINDOW, it works indeed. I am trying to combine it with a fresh attempt to combine tabs and transparency.

@mintty
Copy link
Owner

mintty commented Sep 3, 2023

Release 3.6.5.

@mkq
Copy link
Author

mkq commented Sep 3, 2023

Wow. this is great! Thanks!

I just recently tried again to fix an Autohotkey workaround. It mostly works with SessionGeomSync <= 2, but has issues when mintty is minimized. I am happy to see that mintty's built-in handling seems to work flawlessly. (And I can live without separate taskbar button. Having a clean Alt+Tab list is my main priority.)

Maybe you should also mention Alt+Tab in the release notes? I would not expect an Alt+Tab cleanup when reading just "Group taskbar icons".

@mintty
Copy link
Owner

mintty commented Sep 4, 2023

Changed on the release page, but I don't think I'll send another announcement mail on the cygwin list.
Thanks for the feedback.

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

No branches or pull requests

2 participants