Save the thumbar buttons when setting them

Then restore the buttons when restoring the taskbar icon
This commit is contained in:
Samuel Attard 2016-08-13 01:55:42 +10:00
parent 0b624315b2
commit 2fa7aa3c71
4 changed files with 17 additions and 3 deletions

View file

@ -726,10 +726,12 @@ void NativeWindowViews::SetSkipTaskbar(bool skip) {
CLSCTX_INPROC_SERVER)) ||
FAILED(taskbar->HrInit()))
return;
if (skip)
if (skip) {
taskbar->DeleteTab(GetAcceleratedWidget());
else
} else {
taskbar->AddTab(GetAcceleratedWidget());
taskbar_host_.RestoreThumbarButtons(GetAcceleratedWidget());
}
#elif defined(USE_X11)
SetWMSpecState(GetAcceleratedWidget(), skip,
GetAtom("_NET_WM_STATE_SKIP_TASKBAR"));