Skip to content

Commit

Permalink
fix: remove kwayland-shell env
Browse files Browse the repository at this point in the history
remove kwayland-shell env

Log: remove kwayland-shell env
  • Loading branch information
lzwind authored and deepin-bot[bot] committed Nov 7, 2024
1 parent c600bea commit 4adfbef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
deepin-system-monitor (6.5.3) unstable; urgency=medium

* remove kwayland-shell env

-- Liu zheng <[email protected]> Wed, 06 Nov 2024 15:59:09 +0800

deepin-system-monitor (6.5.2) unstable; urgency=medium

* chore: clear obsolete *.psd files(Bug: 267081)
Expand Down
16 changes: 0 additions & 16 deletions deepin-system-monitor-main/common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,23 +201,7 @@ int specialComType = -1;

void WaylandSearchCentered()
{
#ifdef USE_DEEPIN_WAYLAND
auto e = QProcessEnvironment::systemEnvironment();

QString XDG_SESSION_TYPE = e.value(QStringLiteral("XDG_SESSION_TYPE"));
QString WAYLAND_DISPLAY = e.value(QStringLiteral("WAYLAND_DISPLAY"));

if (XDG_SESSION_TYPE == QLatin1String("wayland") || WAYLAND_DISPLAY.contains(QLatin1String("wayland"), Qt::CaseInsensitive)) {
WaylandCentered = true;
if (!common::systemInfo().isOldVersion() && !common::systemInfo().isTreeLand())
qputenv("QT_WAYLAND_SHELL_INTEGRATION", "kwayland-shell");
} else {
WaylandCentered = false;
}
#else
WaylandCentered = false;
#endif //USE_DEEPIN_WAYLAND

}

static void init_shell_list()
Expand Down

0 comments on commit 4adfbef

Please sign in to comment.