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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user