make e_hints setup slightly more clue-ful
This commit is contained in:
parent
9e9651aad5
commit
2746600db2
|
@ -125,15 +125,13 @@ e_hints_init(void)
|
||||||
nwins = ecore_x_window_prop_window_get(roots[i],
|
nwins = ecore_x_window_prop_window_get(roots[i],
|
||||||
ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
|
ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
|
||||||
&win, 1);
|
&win, 1);
|
||||||
|
twin = win;
|
||||||
if (nwins > 0)
|
if (nwins > 0)
|
||||||
{
|
{
|
||||||
for (;; )
|
for (;; )
|
||||||
{
|
{
|
||||||
nwins = ecore_x_window_prop_window_get(win,
|
|
||||||
ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
|
|
||||||
&twin, 1);
|
|
||||||
if (nwins < 1) break;
|
|
||||||
if (twin != win) break;
|
if (twin != win) break;
|
||||||
|
if (ecore_x_error_code_get()) break; //some dead window has the atom
|
||||||
if (ecore_x_netwm_name_get(win, &name))
|
if (ecore_x_netwm_name_get(win, &name))
|
||||||
{
|
{
|
||||||
if (name)
|
if (name)
|
||||||
|
@ -153,6 +151,10 @@ e_hints_init(void)
|
||||||
"on this screen. Aborting startup.\n"));
|
"on this screen. Aborting startup.\n"));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
nwins = ecore_x_window_prop_window_get(roots[i],
|
||||||
|
ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
|
||||||
|
&twin, 1);
|
||||||
|
if (nwins < 1) break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue