home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Enlightenment / enl14.tgz / enl14.tar / enl14 / handlers.c < prev    next >
C/C++ Source or Header  |  1997-11-17  |  1KB  |  40 lines

  1. #include "enl.h"
  2.  
  3. void HandleSigChild(int num)
  4. {
  5.    int status;
  6.    
  7.    while (wait3(&status, WNOHANG, 0)>0);
  8. }
  9.  
  10. void HandleXError(Display *d, XErrorEvent *ev)
  11. {
  12.    if  ((ev->request_code == X_ChangeWindowAttributes)&&
  13.     (ev->error_code   == BadAccess))
  14.      {
  15.     Alert("Another window manager is already running.\n"
  16.           "You will have to quit you current window manager first before\n"
  17.           "you can successfully run enlightenment.\n"
  18.           "If you haven't edited your user startup files, Enlightenment\n"
  19.           "can do that now for you, so when you log in again after\n"
  20.           "quitting your current window manager, you will have\n"
  21.           "Enlightenment running. If you want to do this, click left\n"
  22.           "button for OK, otherwise middle or right mouse button\n"
  23.           "to restart Enlightenment or Quit now\n");
  24.     EExit(1);
  25.      }
  26.    return;
  27. }
  28.  
  29. void HandleXIOError(Display *d)
  30. {
  31.    if (d==disp)
  32.      {
  33.     Alert("ERROR - FATAL: Lost primary connection to display.\n"
  34.           "Giving up\n");
  35.     EExit(100);
  36.      }
  37.    EExit(1);
  38. }
  39.  
  40.