2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Implement taskbar icon hidding on Wayland with org_kde_plasma_shell protocol

This commit is contained in:
Ilya Fedin
2021-05-13 06:38:30 +04:00
committed by John Preston
parent 166c28c215
commit 434ef34378
5 changed files with 76 additions and 14 deletions

View File

@@ -644,9 +644,15 @@ bool TrayIconSupported() {
}
bool SkipTaskbarSupported() {
if (const auto integration = WaylandIntegration::Instance()) {
return integration->skipTaskbarSupported();
}
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
return IsX11()
&& base::Platform::XCB::IsSupportedByWM("_NET_WM_STATE_SKIP_TASKBAR");
if (IsX11()) {
return base::Platform::XCB::IsSupportedByWM(
"_NET_WM_STATE_SKIP_TASKBAR");
}
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
return false;