Skip to content

Commit

Permalink
group taskbar icons by setting -o Class (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
mined committed Jun 21, 2023
1 parent 113286b commit eb8c5c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/winmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ win_hide_other_tabs(HWND to_top)
// pseudo-hide background tabs by max transparency
LONG style = GetWindowLong(curr_wnd, GWL_EXSTYLE);
style |= WS_EX_LAYERED;
// improve hiding other tab, also hide it from taskbar:
style |= WS_EX_TOOLWINDOW;
SetWindowLong(curr_wnd, GWL_EXSTYLE, style);
SetLayeredWindowAttributes(curr_wnd, 0, 0, LWA_ALPHA);
}
Expand Down Expand Up @@ -561,6 +563,11 @@ win_set_tab_focus(char tag)
// restore by clearing pseudo-hidden state
win_update_transparency(cfg.transparency, cfg.opaque_when_focused);

// unhide this tab from tool window mode, propagate it to taskbar
LONG style = GetWindowLong(wnd, GWL_EXSTYLE);
style &= ~WS_EX_TOOLWINDOW;
SetWindowLong(wnd, GWL_EXSTYLE, style);

// hide background tabs
if (cfg.window) // not hidden explicitly
win_hide_other_tabs(wnd);
Expand Down
1 change: 1 addition & 0 deletions wiki/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Terminal features

Window handling
* Revamp window operations, esp max/fullscreen, to not raise to foreground.
* Group taskbar icons by setting -o Class (#1207).

Configuration
* New user-definable function compose (#1211).
Expand Down

0 comments on commit eb8c5c8

Please sign in to comment.