[maemo-developers] How to get a program window into the task/window switcher?
From: Faheem Pervez trippin1 at gmail.comDate: Thu Apr 30 09:16:31 EEST 2009
- Previous message: How to get a program window into the task/window switcher?
- Next message: How to get a program window into the task/window switcher?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. 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. 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. Best Regards, Faheem On Wed, Apr 29, 2009 at 10:06 PM, Frantisek Dufka <dufkaf at seznam.cz> wrote: > Faheem Pervez wrote: > > > char *name = "Title to show on first line - Title to show on second > > line" and then pass that char to XStoreName as the third argument: > > Indeed. Thanks for figuring this out. One definitely needs the " - " > part including spaces there. BTW as for the Mikkov's wiki code sample > I've ended with seting both windows at once no mater if fullscreen or > not. This saves me updating title of the other window after each > fullscreen switch. > > win = info.info.x11.fswindow; > if (win) XStoreName(dpy, win, title); > win = info.info.x11.wmwindow; > if (win) XStoreName(dpy, win, title); > > Seems to work for me. > > Frantisek > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090430/fa8d4e1b/attachment.htm
- Previous message: How to get a program window into the task/window switcher?
- Next message: How to get a program window into the task/window switcher?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]