How to indicate that a window type is desktop in SDL

Hi,everyone

I’m trying to make a SDL application as a desktop environment such as
KDE,XFCE…

But I don’t know how to indicate a window type is desktop which the
windows manager can recognise.

With Qt, I can do this by the codes as fllows:

setAttribute(Qt::WA_X11NetWmWindowTypeDesktop);
setWindowFlags(Qt::SplashScreen);

Qt::WindowFlags flags = 0;
flags |= Qt::FramelessWindowHint;
flags |= Qt::Tool;
flags |= Qt::WindowStaysOnBottomHint;

setWindowFlags(flags);

I haven’t found the similar function in SDL API reference,how can I
achieve that in SDL ?

Any help or suggestions will be greatly appreciated.

Thanks.

SDL doesn’t currently support that functionality. It’s an interesting idea
though, I’ll put it on the list for SDL 1.3.On Sun, Aug 2, 2009 at 4:42 AM, Tony.Li <lichuan.cn at gmail.com> wrote:

Hi,everyone

I’m trying to make a SDL application as a desktop environment such as
KDE,XFCE…

But I don’t know how to indicate a window type is desktop which the
windows manager can recognise.

With Qt, I can do this by the codes as fllows:

setAttribute(Qt::WA_X11NetWmWindowTypeDesktop);
setWindowFlags(Qt::SplashScreen);

Qt::WindowFlags flags = 0;
flags |= Qt::FramelessWindowHint;
flags |= Qt::Tool;
flags |= Qt::WindowStaysOnBottomHint;

setWindowFlags(flags);

I haven’t found the similar function in SDL API reference,how can I
achieve that in SDL ?

Any help or suggestions will be greatly appreciated.

Thanks.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Thank you very mouch for your response.

I’m looking forward to SDL 1.3.I think many small devices need a
more beautiful UI and SDL is cool engough…

2009/8/7 Sam Lantinga > SDL doesn’t currently support that functionality. It’s an interesting idea

though, I’ll put it on the list for SDL 1.3.

On Sun, Aug 2, 2009 at 4:42 AM, Tony.Li <@Tony.Li> wrote:

Hi,everyone

I’m trying to make a SDL application as a desktop environment such as
KDE,XFCE…

But I don’t know how to indicate a window type is desktop which the
windows manager can recognise.

With Qt, I can do this by the codes as fllows:

setAttribute(Qt::WA_X11NetWmWindowTypeDesktop);
setWindowFlags(Qt::SplashScreen);

Qt::WindowFlags flags = 0;
flags |= Qt::FramelessWindowHint;
flags |= Qt::Tool;
flags |= Qt::WindowStaysOnBottomHint;

setWindowFlags(flags);

I haven’t found the similar function in SDL API reference,how can I
achieve that in SDL ?

Any help or suggestions will be greatly appreciated.

Thanks.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org