From cbd87771fd68ef10ec759f4a63b92dac2ffaae75 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 28 Jul 2022 19:18:24 -0500 Subject: [PATCH 1/2] fix: remove skip-taskbar feature on Linux. Marked as unsupported in e19, now removed in e20. See #33226 for more information --- shell/browser/native_window_views.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shell/browser/native_window_views.cc b/shell/browser/native_window_views.cc index 51ccfef8c689f..cf26c47e83e78 100644 --- a/shell/browser/native_window_views.cc +++ b/shell/browser/native_window_views.cc @@ -303,14 +303,9 @@ NativeWindowViews::NativeWindowViews(const gin_helper::Dictionary& options, #if defined(USE_OZONE_PLATFORM_X11) if (IsX11()) { - // TODO(ckerr): remove in Electron v20.0.0 // Before the window is mapped the SetWMSpecState can not work, so we have // to manually set the _NET_WM_STATE. std::vector state_atom_list; - bool skip_taskbar = false; - if (options.Get(options::kSkipTaskbar, &skip_taskbar) && skip_taskbar) { - state_atom_list.push_back(x11::GetAtom("_NET_WM_STATE_SKIP_TASKBAR")); - } // Before the window is mapped, there is no SHOW_FULLSCREEN_STATE. if (fullscreen) { From 4d0916246ce648d5be0026ad2e47420d161089e4 Mon Sep 17 00:00:00 2001 From: Keeley Hammond Date: Fri, 29 Jul 2022 12:10:07 -0700 Subject: [PATCH 2/2] docs: remove skipTaskbar note in browserWindow --- docs/api/browser-window.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index d2a4ef468b5e5..e5fd4045803a2 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -1323,7 +1323,7 @@ win.setSheetOffset(toolbarRect.height) Starts or stops flashing the window to attract user's attention. -#### `win.setSkipTaskbar(skip)` +#### `win.setSkipTaskbar(skip)` _macOS_ _Windows_ * `skip` boolean