diff --git a/files/snipe/dde-lock.desktop b/files/snipe/dde-lock.desktop index f6cac095..c72889e9 100644 --- a/files/snipe/dde-lock.desktop +++ b/files/snipe/dde-lock.desktop @@ -4,7 +4,7 @@ Comment=Deepin Lock Encoding=UTF-8 Exec=/usr/bin/dde-lock NoDisplay=true -OnlyShowIn=DDE +OnlyShowIn=DDE;Deepin Type=Application X-Deepin-Vendor=user-custom X-Deepin-TurboType=dtkwidget diff --git a/plugins/login-gesture/src/gesturepannel.h b/plugins/login-gesture/src/gesturepannel.h index 4adc72e2..1d2a9cc7 100644 --- a/plugins/login-gesture/src/gesturepannel.h +++ b/plugins/login-gesture/src/gesturepannel.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/plugins/login-gesture/src/waypointwidget.cpp b/plugins/login-gesture/src/waypointwidget.cpp index 7867b0d3..a3fe0756 100644 --- a/plugins/login-gesture/src/waypointwidget.cpp +++ b/plugins/login-gesture/src/waypointwidget.cpp @@ -6,6 +6,7 @@ #include "waypointmodel.h" #include +#include #include #include diff --git a/src/app/dde-lock.cpp b/src/app/dde-lock.cpp index 62ba2b93..6bf8d4f4 100644 --- a/src/app/dde-lock.cpp +++ b/src/app/dde-lock.cpp @@ -26,10 +26,16 @@ #include #include +#include DCORE_USE_NAMESPACE DWIDGET_USE_NAMESPACE +static int x11IOErrorHandler(Display *) +{ + _exit(0); +} + int main(int argc, char *argv[]) { #if (DTK_VERSION >= DTK_VERSION_CHECK(5, 6, 8, 7) && DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)) @@ -280,5 +286,6 @@ int main(int argc, char *argv[]) emit model->showLockScreen(); } } + XSetIOErrorHandler(x11IOErrorHandler); return app->exec(); }