Skip to content

Commit

Permalink
tweak: bring other tab to top when closing (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed Oct 27, 2020
1 parent d38c9d1 commit 7573e73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/mintty.1
Original file line number Diff line number Diff line change
Expand Up @@ -3275,7 +3275,7 @@ operation within the Virtual Tabs feature:
.br
\(en \fB0\fP: no geometry handling; terminal session windows are separate
.br
\(en \fB1\fP: sync. position/size when switching/launching a session
\(en \fB1\fP: sync. position/size when switching/launching/closing a session
.br
\(en \fB2\fP: sync. also when window is moved or resized
.br
Expand Down
4 changes: 1 addition & 3 deletions src/winmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ char * mintty_debug;
#include <getopt.h>
#if CYGWIN_VERSION_API_MINOR < 74
#define getopt_long_only getopt_long
typedef UINT_PTR uintptr_t;
#endif
#include <pwd.h>

Expand Down Expand Up @@ -5544,9 +5545,6 @@ static int dynfonts = 0;
}

if (cfg.tabbar && !getenv("MINTTY_DX") && !getenv("MINTTY_DY")) {
#if CYGWIN_VERSION_API_MINOR < 74
typedef UINT_PTR uintptr_t;
#endif
HWND wnd_other = FindWindowExW(NULL, wnd,
(LPCWSTR)(uintptr_t)class_atom, NULL);
if (wnd_other && FindWindowExA(wnd_other, NULL, TABBARCLASS, NULL)) {
Expand Down
3 changes: 3 additions & 0 deletions wiki/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Terminal features
* Optional automatic progress detection (mintty/wsltty#202).
* Media Copy sequence CSI 12 i to dump screen as image (#1051).

Window handling / Tabbar (thanks to K. Takata)
* Bring other tab to top when closing (#1054).

Configuration
* New option ProgressBar (mintty/wsltty#202).

Expand Down

0 comments on commit 7573e73

Please sign in to comment.