Incidentally, this only happens because libSDL uses Xutf8TextListToTextProperty() in SDL_x11vm.c to set the window title. Commented a few lines to make it use XStringListToTextProperty() and using SDL_WM_SetCaption() worked to set the title without any Xlib tricks.<br>
<br>I can't be bothered, personally, to open a bug as I know it will not be fixed for Diablo but (assuming that the Fremantle hildon-desktop doesn't support UTF-8 strings for titles) anyone else is free to open a bug.<br>
<br>P.S: Frantisek, have any plans on updating the Game_development wiki page with your tip? It'd help those who do not subscribe here.<br><br>Best Regards,<br>Faheem<br><br><div class="gmail_quote">On Wed, Apr 29, 2009 at 10:06 PM, Frantisek Dufka <span dir="ltr"><<a href="mailto:dufkaf@seznam.cz">dufkaf@seznam.cz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Faheem Pervez wrote:<br>
<br>
> char *name = "Title to show on first line - Title to show on second<br>
> line" and then pass that char to XStoreName as the third argument:<br>
<br>
</div>Indeed. Thanks for figuring this out. One definitely needs the " - "<br>
part including spaces there. BTW as for the Mikkov's wiki code sample<br>
I've ended with seting both windows at once no mater if fullscreen or<br>
not. This saves me updating title of the other window after each<br>
fullscreen switch.<br>
<br>
win = info.info.x11.fswindow;<br>
if (win) XStoreName(dpy, win, title);<br>
win = info.info.x11.wmwindow;<br>
if (win) XStoreName(dpy, win, title);<br>
<br>
Seems to work for me.<br>
<div><div></div><div class="h5"><br>
Frantisek<br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</div></div></blockquote></div><br>