src/video/x11/SDL_x11messagebox.c
changeset 11260 f7abcb63e51e
parent 11259 931e9d3a452e
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11259:931e9d3a452e 11260:f7abcb63e51e
   420     if (title_locale) {
   420     if (title_locale) {
   421         XTextProperty titleprop;
   421         XTextProperty titleprop;
   422         Status status = X11_XStringListToTextProperty(&title_locale, 1, &titleprop);
   422         Status status = X11_XStringListToTextProperty(&title_locale, 1, &titleprop);
   423         SDL_free(title_locale);
   423         SDL_free(title_locale);
   424         if (status) {
   424         if (status) {
   425             X11_XSetTextProperty(display, data->xwindow, &titleprop, XA_WM_NAME);
   425             X11_XSetTextProperty(display, data->window, &titleprop, XA_WM_NAME);
   426             X11_XFree(titleprop.value);
   426             X11_XFree(titleprop.value);
   427         }
   427         }
   428     }
   428     }
   429 
   429 
   430 #ifdef X_HAVE_UTF8_STRING
   430 #ifdef X_HAVE_UTF8_STRING
   431     if (SDL_X11_HAVE_UTF8) {
   431     if (SDL_X11_HAVE_UTF8) {
   432         XTextProperty titleprop;
   432         XTextProperty titleprop;
   433         status = X11_Xutf8TextListToTextProperty(display, (char **) &messageboxdata->title, 1,
   433         Status status = X11_Xutf8TextListToTextProperty(display, (char **) &messageboxdata->title, 1,
   434                                             XUTF8StringStyle, &titleprop);
   434                                             XUTF8StringStyle, &titleprop);
   435         if (status == Success) {
   435         if (status == Success) {
   436             X11_XSetTextProperty(display, data->window, &titleprop,
   436             X11_XSetTextProperty(display, data->window, &titleprop,
   437                                  _NET_WM_NAME);
   437                                  _NET_WM_NAME);
   438             X11_XFree(titleprop.value);
   438             X11_XFree(titleprop.value);