pandora-skel: .xinitrc cleanups
[openpandora.oe.git] / recipes / slim / slim / chvt_on_exit.patch
1 diff -urp slim-1.3.1_/app.cpp slim-1.3.1/app.cpp
2 --- slim-1.3.1_/app.cpp 2014-10-19 03:03:12.620870228 +0300
3 +++ slim-1.3.1/app.cpp  2014-10-19 04:42:05.373090987 +0300
4 @@ -956,7 +956,7 @@ int IgnoreXIO(Display *d) {
5  }
6  
7  
8 -void App::StopServer() {
9 +void App::StopServerWork() {
10      // Stop alars clock and ignore signals
11      alarm(0);
12      signal(SIGQUIT, SIG_IGN);
13 @@ -1013,6 +1013,12 @@ void App::StopServer() {
14      cerr << endl;
15  }
16  
17 +void App::StopServer() {
18 +    StopServerWork();
19 +    // yet another pandora hack: switch to tty1, where user can log in
20 +    system("/usr/bin/chvt 1");
21 +}
22 +
23  
24  void App::blankScreen()
25  {
26 Only in slim-1.3.1_: .app.cpp.swp
27 diff -urp slim-1.3.1_/app.h slim-1.3.1/app.h
28 --- slim-1.3.1_/app.h   2014-10-19 03:03:12.624870228 +0300
29 +++ slim-1.3.1/app.h    2014-10-19 04:41:54.873090597 +0300
30 @@ -34,6 +34,7 @@ public:
31      ~App();
32      void Run();
33      int GetServerPID();
34 +    void StopServerWork();
35      void StopServer();
36  
37      // Lock functions