Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
ecore_x_window.c
Log Message:
Should probably only set the WM_CLIENT_MACHINE automatically for top-level
windows.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ecore_x_window.c 12 Oct 2003 17:55:28 -0000 1.4
+++ ecore_x_window.c 13 Oct 2003 16:02:41 -0000 1.5
@@ -57,9 +57,12 @@
CWEventMask,
&attr);
- gethostname(buf, MAXHOSTNAMELEN);
- buf[MAXHOSTNAMELEN - 1] = '\0';
- ecore_x_window_prop_client_machine_set(win, buf);
+ if (parent == DefaultRootWindow(_ecore_x_disp))
+ {
+ gethostname(buf, MAXHOSTNAMELEN);
+ buf[MAXHOSTNAMELEN - 1] = '\0';
+ ecore_x_window_prop_client_machine_set(win, buf);
+ }
return win;
}
@@ -118,9 +121,12 @@
CWEventMask,
&attr);
- gethostname(buf, MAXHOSTNAMELEN);
- buf[MAXHOSTNAMELEN - 1] = '\0';
- ecore_x_window_prop_client_machine_set(win, buf);
+ if (parent == DefaultRootWindow(_ecore_x_disp))
+ {
+ gethostname(buf, MAXHOSTNAMELEN);
+ buf[MAXHOSTNAMELEN - 1] = '\0';
+ ecore_x_window_prop_client_machine_set(win, buf);
+ }
return win;
}
@@ -169,9 +175,12 @@
CWEventMask,
&attr);
- gethostname(buf, MAXHOSTNAMELEN);
- buf[MAXHOSTNAMELEN - 1] = '\0';
- ecore_x_window_prop_client_machine_set(win, buf);
+ if (parent == DefaultRootWindow(_ecore_x_disp))
+ {
+ gethostname(buf, MAXHOSTNAMELEN);
+ buf[MAXHOSTNAMELEN - 1] = '\0';
+ ecore_x_window_prop_client_machine_set(win, buf);
+ }
return win;
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs