Skip to content

Commit

Permalink
write island trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
miniksa committed Feb 15, 2022
1 parent 3d1ad43 commit 9c67d94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cascadia/WindowsTerminal/IslandWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,15 @@ void IslandWindow::SetAlwaysOnTop(const bool alwaysOnTop)
}
}

void IslandWindow::ShowWindowChanged(const bool showOrHide)
{
const auto hwnd = GetHandle();
if (hwnd)
{
PostMessage(hwnd, WM_SYSCOMMAND, showOrHide ? SC_RESTORE : SC_MINIMIZE, 0);
}
}

// Method Description
// - Flash the taskbar icon, indicating to the user that something needs their attention
void IslandWindow::FlashTaskbar()
Expand Down
1 change: 1 addition & 0 deletions src/cascadia/WindowsTerminal/IslandWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class IslandWindow :
void FocusModeChanged(const bool focusMode);
void FullscreenChanged(const bool fullscreen);
void SetAlwaysOnTop(const bool alwaysOnTop);
void ShowWindowChanged(const bool showOrHide);

void FlashTaskbar();
void SetTaskbarProgress(const size_t state, const size_t progress);
Expand Down

1 comment on commit 9c67d94

@github-actions

This comment was marked as duplicate.

Please sign in to comment.