Skip to content

Commit

Permalink
Add missing returns to skip taskbar Linux abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Aug 24, 2023
1 parent 1148a2e commit 4755be4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/platform/linux/main_window_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,13 @@ void XCBSetDesktopFileName(QWindow *window) {
void SkipTaskbar(QWindow *window, bool skip) {
if (const auto integration = WaylandIntegration::Instance()) {
integration->skipTaskbar(window, skip);
return;
}

#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
if (IsX11()) {
XCBSkipTaskbar(window, skip);
return;
}
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
}
Expand Down

0 comments on commit 4755be4

Please sign in to comment.