Re: How to get a program window into the task/window switcher?

2009-04-30 Thread Faheem Pervez
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,

Re: How to get a program window into the task/window switcher?

2009-04-30 Thread Frantisek Dufka
Faheem Pervez wrote: 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. I just did and kept both variants. I don't know what is the lifecycle of those two windows so I'm not sure when it is effective to set the

Re: How to get a program window into the task/window switcher?

2009-04-29 Thread Frantisek Dufka
Faheem Pervez wrote: For C programs, Mikkov made the following code which works a treat for SDL stuff: http://wiki.maemo.org/Game_development#Set_the_window_title This is great and works fine to set first line in task switcher window list but it would be nice to put something to second

Re: How to get a program window into the task/window switcher?

2009-04-29 Thread Faheem Pervez
Well, apps using a HildonWindow don't *strictly* do it either (Hildon sets the name of the binary as the first line which is odd IMHO) . But for GTK: you get the first line by using g_set_application_name() and then gtk_window_set_title() for the second line. But believe it or not, this isn't

Re: How to get a program window into the task/window switcher?

2009-04-29 Thread Frantisek Dufka
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

Re: How to get a program window into the task/window switcher?

2009-04-29 Thread Faheem Pervez
Brilliant, thanks for that, I've sometimes forgot to do it when the a game in question lets you set the video mode from the menu. That tip should help. Best Regards, Faheem On Wed, Apr 29, 2009 at 10:06 PM, Frantisek Dufka duf...@seznam.cz wrote: BTW as for the Mikkov's wiki code sample I've

How to get a program window into the task/window switcher?

2009-04-27 Thread Faheem Pervez
From: Faheem Pervez tripp...@gmail.com Date: Mon, Apr 27, 2009 at 4:00 PM Subject: Re: How to get a program window into the task/window switcher? To: Martin Wegner martinator...@arcor.de Hello, Here's a SDL example: Building and running http://olofson.net/download/parallax-2.tar.gz and

Re: How to get a program window into the task/window switcher?

2009-04-27 Thread Thomas Wälti
And, lo and behold, I get my icon shown: http://i39.tinypic.com/avllrn.png (Ignore that the window title is shown as unknown - this is something specific to SDL under Maemo) Ah how I hate that bug - makes pygame apps looking so amateurish. Checking Bugzilla, I believe no one ever reported

Re: How to get a program window into the task/window switcher?

2009-04-27 Thread Faheem Pervez
Not sure, I can't even bring up a task switcher in the Alpha Fremantle SDK! For C programs, Mikkov made the following code which works a treat for SDL stuff: http://wiki.maemo.org/Game_development#Set_the_window_title Dunno how you'd get a python equivalent (I built python-xlib and fixed it up

Re: How to get a program window into the task/window switcher?

2009-04-27 Thread Martin Wegner
Hello Faheem, thank you so much for your detailed manual :) I got xprop from here: deb http://austinche.name/maemo/ bora/ But libxmuu1 is required for the xprop installation, so I got libxmuu1 from here: deb http://repository.maemo.org/ chinook free non-free Now I started xprop via SSH and

Re: How to get a program window into the task/window switcher?

2009-04-26 Thread Faheem Pervez
You can use xprop to get the WMClass of the application and make a desktop file and add the WMClass given to the StartupWMClass argument in the desktop file. It's done with SDL apps and some Xlib apps to get the icon shown. BR On Sat, Apr 25, 2009 at 4:35 PM, Martin Wegner

How to get a program window into the task/window switcher?

2009-04-25 Thread Martin Wegner
Hello, my Java AWT/Swing programs don't appear in the task/window switcher when I use openjdk-6-cacao-jre from the Jalimo project. I have the same problem when I use Sun Java SE for Embedded 6u10 headful version. Is there a way to put a program window into the task/window switcher? Thank you