Evoke will now correctly shutdown (try) all running windows, when

session should be logged out. Previous version (althought commented) was
closing all windows (buttons and rest are counted too), not their main
window. Thanks to some old code from babaya project I found, XmuClientWindow
is what I needed, so emulation is provided to avoid linking with libXmu.

Also added some more signals to detect quitting.

Pending issue: I'm getting strange sound driver locks when X are started
via evoke. This is un-reporoduceable when evoke is started from gui console. 
This still needs to be investigate.
This commit is contained in:
Sanel Zukan
2007-09-17 10:36:24 +00:00
parent 841a106a28
commit 00f5f2d59a
6 changed files with 122 additions and 51 deletions

View File

@ -23,10 +23,10 @@
#include <string.h> // memset
static int logout_ret;
static Fl_Double_Window* win;
static Fl_Round_Button* rb1;
static Fl_Round_Button* rb2;
static Fl_Round_Button* rb3;
static Fl_Double_Window* win;
static Fl_Round_Button* rb1;
static Fl_Round_Button* rb2;
static Fl_Round_Button* rb3;
unsigned char* take_x11_screenshot(unsigned char *p, int X, int Y, int w, int h, int alpha);
unsigned char* make_darker(unsigned char *p, int X, int Y, int w, int h);