On occasion we see ee->prop.title == NULL. This will safeguard.

SVN revision: 34881
This commit is contained in:
Eric Schuele 2008-06-21 02:44:38 +00:00
parent 3d551cfeb8
commit c543df064c
1 changed files with 16 additions and 7 deletions

View File

@ -1931,8 +1931,11 @@ _ecore_evas_x_alpha_set(Ecore_Evas *ee, int alpha)
ecore_x_mwm_borderless_set(ee->engine.x.win, ee->prop.borderless);
if (ee->visible) ecore_x_window_show(ee->engine.x.win);
if (ee->prop.focused) ecore_x_window_focus(ee->engine.x.win);
ecore_x_icccm_title_set(ee->engine.x.win, ee->prop.title);
ecore_x_netwm_name_set(ee->engine.x.win, ee->prop.title);
if (ee->prop.title)
{
ecore_x_icccm_title_set(ee->engine.x.win, ee->prop.title);
ecore_x_netwm_name_set(ee->engine.x.win, ee->prop.title);
}
#endif /* BUILD_ECORE_EVAS_X11 */
}
else if (!strcmp(ee->driver, "xrender_x11"))
@ -1999,9 +2002,12 @@ _ecore_evas_x_alpha_set(Ecore_Evas *ee, int alpha)
if (ee->prop.borderless)
ecore_x_mwm_borderless_set(ee->engine.x.win, ee->prop.borderless);
if (ee->visible) ecore_x_window_show(ee->engine.x.win);
if (ee->prop.focused) ecore_x_window_focus(ee->engine.x.win);
ecore_x_icccm_title_set(ee->engine.x.win, ee->prop.title);
ecore_x_netwm_name_set(ee->engine.x.win, ee->prop.title);
if (ee->prop.focused) ecore_x_window_focus(ee->engine.x.win);
if (ee->prop.title)
{
ecore_x_icccm_title_set(ee->engine.x.win, ee->prop.title);
ecore_x_netwm_name_set(ee->engine.x.win, ee->prop.title);
}
#endif
}
else if (!strcmp(ee->driver, "software_16_x11"))
@ -2055,8 +2061,11 @@ _ecore_evas_x_alpha_set(Ecore_Evas *ee, int alpha)
ecore_x_mwm_borderless_set(ee->engine.x.win, ee->prop.borderless);
if (ee->visible) ecore_x_window_show(ee->engine.x.win);
if (ee->prop.focused) ecore_x_window_focus(ee->engine.x.win);
ecore_x_icccm_title_set(ee->engine.x.win, ee->prop.title);
ecore_x_netwm_name_set(ee->engine.x.win, ee->prop.title);
if (ee->prop.title)
{
ecore_x_icccm_title_set(ee->engine.x.win, ee->prop.title);
ecore_x_netwm_name_set(ee->engine.x.win, ee->prop.title);
}
#endif /* BUILD_ECORE_EVAS_X11_16 */
}
}