Enlightenment CVS committal

Author  : kwo
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_main.c 


Log Message:
Close down X somewhat more gently.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_main.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- e_main.c    5 Jan 2005 10:37:53 -0000       1.22
+++ e_main.c    5 Jan 2005 23:40:23 -0000       1.23
@@ -15,6 +15,7 @@
 static void _e_main_shutdown_push(int (*func)(void));
 static void _e_main_shutdown(int errorcode);
 
+static int  _e_main_x_shutdown(void);
 static int  _e_main_dirs_init(void);
 static int  _e_main_dirs_shutdown(void);
 static int  _e_main_screens_init(void);
@@ -146,7 +147,7 @@
                             "Have you set your DISPLAY variable?");
        _e_main_shutdown(-1);
      }
-   _e_main_shutdown_push(ecore_x_shutdown);
+   _e_main_shutdown_push(_e_main_x_shutdown);
    
    ecore_x_grab();
    
@@ -422,6 +423,18 @@
 }
 
 static int
+_e_main_x_shutdown(void)
+{
+   ecore_x_ungrab();
+   ecore_x_focus_reset();
+   ecore_x_events_allow_all();
+
+   ecore_x_shutdown();
+
+   return 1;
+}
+
+static int
 _e_main_dirs_init(void)
 {
    char *homedir;




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to