diff --git a/frame/main.cpp b/frame/main.cpp index 5a458f949..e101fff4e 100644 --- a/frame/main.cpp +++ b/frame/main.cpp @@ -187,6 +187,11 @@ void sig_crash(int sig) int main(int argc, char *argv[]) { + if (QString(getenv("XDG_CURRENT_DESKTOP")).compare("deepin", Qt::CaseInsensitive) == 0) { + qDebug() << "Warning: force enable D_DXCB_FORCE_NO_TITLEBAR now!"; + setenv("D_DXCB_FORCE_NO_TITLEBAR", "1", 1); + } + DGuiApplicationHelper::setUseInactiveColorGroup(false); DockApplication app(argc, argv);