wok annotate slim/stuff/patches/app.cpp-1.3.6 @ rev 25310

updated slim, slim-pam and slim-theme-default (1.3.5 -> 1.3.6)
author Hans-Günter Theisgen
date Wed Jul 20 17:04:10 2022 +0100 (2022-07-20)
parents
children
rev   line source
Hans-Günter@25310 1 --- app.cpp.orig
Hans-Günter@25310 2 +++ app.cpp
Hans-Günter@25310 3 @@ -25,6 +25,7 @@
Hans-Günter@25310 4 #include "app.h"
Hans-Günter@25310 5 #include "numlock.h"
Hans-Günter@25310 6 #include "util.h"
Hans-Günter@25310 7 +#include <X11/Xmu/WinUtil.h>
Hans-Günter@25310 8
Hans-Günter@25310 9 #ifdef HAVE_SHADOW
Hans-Günter@25310 10 #include <shadow.h>
Hans-Günter@25310 11 @@ -447,6 +448,11 @@
Hans-Günter@25310 12 case Panel::Console:
Hans-Günter@25310 13 logStream << APPNAME << ": Got a special command (" << LoginPanel->GetName() << ")" << endl;
Hans-Günter@25310 14 return true; /* <--- This is simply fake! */
Hans-Günter@25310 15 + case Panel::Suspend:
Hans-Günter@25310 16 + case Panel::Halt:
Hans-Günter@25310 17 + case Panel::Reboot:
Hans-Günter@25310 18 + if (cfg->getOption("root_password") == "false")
Hans-Günter@25310 19 + return true;
Hans-Günter@25310 20 default:
Hans-Günter@25310 21 break;
Hans-Günter@25310 22 }