1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-01-06 13:54:23 +01:00

slim: Changed patch for keyboard ctrl (take 4)

This commit is contained in:
root
2010-08-22 16:34:58 +02:00
parent 7c0e159081
commit 3a7eab0ea7
2 changed files with 6 additions and 21 deletions

View File

@@ -1,22 +1,7 @@
diff -ru slim-1.3.2_orig/app.cpp slim-1.3.2/app.cpp
--- slim-1.3.2_orig/app.cpp 2010-08-22 16:08:26.000000000 +0200
+++ slim-1.3.2/app.cpp 2010-08-22 16:10:53.000000000 +0200
@@ -51,9 +51,13 @@
panel->EventHandler(Panel::Get_Name);
switch(panel->getAction()){
case Panel::Suspend:
+ Suspend();
+ break;
case Panel::Halt:
+ Halt();
+ break;
case Panel::Reboot:
- (*resp)[i].resp=strdup("root");
+ Reboot();
break;
case Panel::Console:
@@ -385,12 +389,15 @@
+++ slim-1.3.2/app.cpp 2010-08-22 16:34:01.000000000 +0200
@@ -385,12 +385,15 @@
case Panel::Console:
Console();
break;
@@ -32,7 +17,7 @@ diff -ru slim-1.3.2_orig/app.cpp slim-1.3.2/app.cpp
case Panel::Suspend:
Suspend();
break;
@@ -411,6 +418,10 @@
@@ -411,6 +414,10 @@
}
catch(PAM::Auth_Exception& e){
switch(LoginPanel->getAction()){
@@ -43,7 +28,7 @@ diff -ru slim-1.3.2_orig/app.cpp slim-1.3.2/app.cpp
case Panel::Exit:
case Panel::Console:
return true; // <--- This is simply fake!
@@ -431,6 +442,11 @@
@@ -431,6 +438,11 @@
if (!focuspass){
LoginPanel->EventHandler(Panel::Get_Name);
switch(LoginPanel->getAction()){
@@ -55,7 +40,7 @@ diff -ru slim-1.3.2_orig/app.cpp slim-1.3.2/app.cpp
case Panel::Exit:
case Panel::Console:
cerr << APPNAME << ": Got a special command (" << LoginPanel->GetName() << ")" << endl;
@@ -445,6 +461,10 @@
@@ -445,6 +457,10 @@
struct passwd *pw;
switch(LoginPanel->getAction()){