Save the thumbar buttons when setting them
Then restore the buttons when restoring the taskbar icon
This commit is contained in:
parent
0b624315b2
commit
2fa7aa3c71
4 changed files with 17 additions and 3 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue