Should probably only set the WM_CLIENT_MACHINE automatically for top-level

windows.


SVN revision: 7562
This commit is contained in:
rbdpngn 2003-10-13 16:02:41 +00:00 committed by rbdpngn
parent d2064a9299
commit 930c2c7fbc
1 changed files with 18 additions and 9 deletions

View File

@ -57,9 +57,12 @@ ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h)
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 @@ ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h)
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 @@ ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h)
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;
}