Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/engines/x11 Modified Files: ewl_engine_x11.c Log Message: don't segfault on NULL titles (maybe this should actually be done by ecore_x) =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v retrieving revision 1.56 retrieving revision 1.57 diff -u -3 -r1.56 -r1.57 --- ewl_engine_x11.c 6 Dec 2007 07:07:12 -0000 1.56 +++ ewl_engine_x11.c 19 Dec 2007 17:01:52 -0000 1.57 @@ -515,12 +515,15 @@ static void ee_window_title_set(Ewl_Window *win) { + const char *title; + DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR(win); DCHECK_TYPE(win, EWL_WINDOW_TYPE); - ecore_x_icccm_title_set((Ecore_X_Window)win->window, win->title); - ecore_x_netwm_name_set((Ecore_X_Window)win->window, win->title); + title = win->title ? win->title : ""; + ecore_x_icccm_title_set((Ecore_X_Window)win->window, title); + ecore_x_netwm_name_set((Ecore_X_Window)win->window, title); DLEAVE_FUNCTION(DLEVEL_STABLE); } ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs