wok view 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 (22 months ago)
parents
children
line source
1 --- app.cpp.orig
2 +++ app.cpp
3 @@ -25,6 +25,7 @@
4 #include "app.h"
5 #include "numlock.h"
6 #include "util.h"
7 +#include <X11/Xmu/WinUtil.h>
9 #ifdef HAVE_SHADOW
10 #include <shadow.h>
11 @@ -447,6 +448,11 @@
12 case Panel::Console:
13 logStream << APPNAME << ": Got a special command (" << LoginPanel->GetName() << ")" << endl;
14 return true; /* <--- This is simply fake! */
15 + case Panel::Suspend:
16 + case Panel::Halt:
17 + case Panel::Reboot:
18 + if (cfg->getOption("root_password") == "false")
19 + return true;
20 default:
21 break;
22 }