wok diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/slim/stuff/patches/app.cpp-1.3.6 Wed Jul 20 17:04:10 2022 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +--- app.cpp.orig 1.5 ++++ app.cpp 1.6 +@@ -25,6 +25,7 @@ 1.7 + #include "app.h" 1.8 + #include "numlock.h" 1.9 + #include "util.h" 1.10 ++#include <X11/Xmu/WinUtil.h> 1.11 + 1.12 + #ifdef HAVE_SHADOW 1.13 + #include <shadow.h> 1.14 +@@ -447,6 +448,11 @@ 1.15 + case Panel::Console: 1.16 + logStream << APPNAME << ": Got a special command (" << LoginPanel->GetName() << ")" << endl; 1.17 + return true; /* <--- This is simply fake! */ 1.18 ++ case Panel::Suspend: 1.19 ++ case Panel::Halt: 1.20 ++ case Panel::Reboot: 1.21 ++ if (cfg->getOption("root_password") == "false") 1.22 ++ return true; 1.23 + default: 1.24 + break; 1.25 + }