Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        setup.c 


Log Message:
Set DISPLAY env var early. Fixes a problem with multihead and early alerts.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/setup.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -3 -r1.119 -r1.120
--- setup.c     20 Mar 2004 15:58:46 -0000      1.119
+++ setup.c     31 Mar 2004 19:05:55 -0000      1.120
@@ -181,6 +181,7 @@
                       Esnprintf(subdisplay + strlen(subdisplay), 10, ".%d", i);
                       dstr = Estrdup(subdisplay);
                       disp = XOpenDisplay(dstr);
+
                       root.scr = i;
                       /* Terminate the loop as I am the child process... */
                       break;
@@ -189,6 +190,8 @@
          }
      }
 
+   Esetenv("DISPLAY", DisplayString(disp), 1);
+
    /* set up an error handler for then E would normally have fatal X errors */
    XSetErrorHandler((XErrorHandler) EHandleXError);
    /* set up a handler for when the X Connection goes down */
@@ -546,8 +549,6 @@
 {
    char                s[1024];
 
-   if (master_pid != getpid())
-      Esetenv("DISPLAY", DisplayString(disp), 1);
    Esetenv("EVERSION", ENLIGHTENMENT_VERSION, 1);
    Esetenv("EROOT", EDirRoot(), 1);
    Esetenv("EBIN", EDirBin(), 1);




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to