Set video window always on top

Hi I am new to SDL, is there any way to make the video window always stay on top of all windows on Win32 and Linux?

Zenda

Not right now, though it’s possible to do.

What are you planning?On Fri, Feb 22, 2013 at 11:27 AM, Zenda Fung wrote:

Hi I am new to SDL, is there any way to make the video window always
stay on top of all windows on Win32 and Linux?****


Zenda****


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

I am using the OPAL VOIP library which uses SDL to show videos on a window. My GUI app shows the video window along with buttons. We observed in the past that the video window is always on top but for some reasons it does not behave like that anymore. When I press the buttons, the video goes behind the app which is no good. What is the typical way to show the SDL surface on a window of an app?

ZendaFrom: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On Behalf Of Sam Lantinga
Sent: Saturday, February 23, 2013 12:56 PM
To: SDL Development List
Subject: Re: [SDL] Set video window always on top

Not right now, though it’s possible to do.

What are you planning?
On Fri, Feb 22, 2013 at 11:27 AM, Zenda Fung <@Zenda_Fungmailto:Zenda_Fung> wrote:
Hi I am new to SDL, is there any way to make the video window always stay on top of all windows on Win32 and Linux?

Zenda


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

Can I just say that I hate when windows forcibly stay on top of the other
ones?
ost of the time there is not a particular reason for doing this and
developers forget to add a user option to disable that behaviour…
jm2c
VittorioOn Mon, Feb 25, 2013 at 4:29 PM, Zenda Fung wrote:

I am using the OPAL VOIP library which uses SDL to show videos on a
window. My GUI app shows the video window along with buttons. We observed
in the past that the video window is always on top but for some reasons it
does not behave like that anymore. When I press the buttons, the video goes
behind the app which is no good. What is the typical way to show the SDL
surface on a window of an app?****


Zenda****


From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Sam Lantinga
Sent: Saturday, February 23, 2013 12:56 PM
To: SDL Development List
Subject: Re: [SDL] Set video window always on top
**


Not right now, though it’s possible to do.****


What are you planning?****

On Fri, Feb 22, 2013 at 11:27 AM, Zenda Fung
wrote:****

Hi I am new to SDL, is there any way to make the video window always stay
on top of all windows on Win32 and Linux?****


Zenda****


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



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

The problem is the app itself is hiding the video window. Again I am new to SDL, any suggestion is greatly appreciated including the “possible” way that Sam refers to.

ZendaFrom: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On Behalf Of Vittorio Giovara
Sent: Monday, February 25, 2013 1:14 PM
To: SDL Development List
Subject: Re: [SDL] Set video window always on top

Can I just say that I hate when windows forcibly stay on top of the other ones?
ost of the time there is not a particular reason for doing this and developers forget to add a user option to disable that behaviour…
jm2c
Vittorio
On Mon, Feb 25, 2013 at 4:29 PM, Zenda Fung <@Zenda_Fungmailto:Zenda_Fung> wrote:
I am using the OPAL VOIP library which uses SDL to show videos on a window. My GUI app shows the video window along with buttons. We observed in the past that the video window is always on top but for some reasons it does not behave like that anymore. When I press the buttons, the video goes behind the app which is no good. What is the typical way to show the SDL surface on a window of an app?

Zenda

From: sdl-bounces@lists.libsdl.org<mailto:sdl-bounces at lists.libsdl.org> [mailto:sdl-bounces at lists.libsdl.org<mailto:sdl-bounces at lists.libsdl.org>] On Behalf Of Sam Lantinga
Sent: Saturday, February 23, 2013 12:56 PM
To: SDL Development List
Subject: Re: [SDL] Set video window always on top

Not right now, though it’s possible to do.

What are you planning?
On Fri, Feb 22, 2013 at 11:27 AM, Zenda Fung <@Zenda_Fungmailto:Zenda_Fung> wrote:
Hi I am new to SDL, is there any way to make the video window always stay on top of all windows on Win32 and Linux?

Zenda


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


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

It seems more of a case of asking the wrong question, the real problem
here is that something that should be one window is being split into
two.

As for the actual question: no idea, didn’t mess with
platform-specific stuff, so somebody else should come up with a better
question. A quick idea would be to lock the surface, read the pixels
off it directly, then use that to draw into the actual window.

How does OPAL render, anyway? Does it just render to a surface or does
it actually create the window?

2013/2/25, Vittorio Giovara <vittorio.giovara at gmail.com>:> Can I just say that I hate when windows forcibly stay on top of the other

ones?
ost of the time there is not a particular reason for doing this and
developers forget to add a user option to disable that behaviour…
jm2c
Vittorio

On Mon, Feb 25, 2013 at 4:29 PM, Zenda Fung wrote:

I am using the OPAL VOIP library which uses SDL to show videos on a
window. My GUI app shows the video window along with buttons. We observed
in the past that the video window is always on top but for some reasons
it
does not behave like that anymore. When I press the buttons, the video
goes
behind the app which is no good. What is the typical way to show the SDL
surface on a window of an app?****


Zenda****


From: sdl-bounces at lists.libsdl.org
[mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Sam Lantinga
Sent: Saturday, February 23, 2013 12:56 PM
To: SDL Development List
Subject: Re: [SDL] Set video window always on top
**


Not right now, though it’s possible to do.****


What are you planning?****

On Fri, Feb 22, 2013 at 11:27 AM, Zenda Fung
wrote:****

Hi I am new to SDL, is there any way to make the video window always stay
on top of all windows on Win32 and Linux?****


Zenda****


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



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

Er, and make sure to unlock the surface after you’re done reading the pixels XD

2013/2/25, Sik the hedgehog <@Sik_the_hedgehog>:> It seems more of a case of asking the wrong question, the real problem

here is that something that should be one window is being split into
two.

As for the actual question: no idea, didn’t mess with
platform-specific stuff, so somebody else should come up with a better
question. A quick idea would be to lock the surface, read the pixels
off it directly, then use that to draw into the actual window.

How does OPAL render, anyway? Does it just render to a surface or does
it actually create the window?

2013/2/25, Vittorio Giovara <vittorio.giovara at gmail.com>:

Can I just say that I hate when windows forcibly stay on top of the other
ones?
ost of the time there is not a particular reason for doing this and
developers forget to add a user option to disable that behaviour…
jm2c
Vittorio

On Mon, Feb 25, 2013 at 4:29 PM, Zenda Fung wrote:

I am using the OPAL VOIP library which uses SDL to show videos on a
window. My GUI app shows the video window along with buttons. We
observed
in the past that the video window is always on top but for some reasons
it
does not behave like that anymore. When I press the buttons, the video
goes
behind the app which is no good. What is the typical way to show the SDL
surface on a window of an app?****


Zenda****


From: sdl-bounces at lists.libsdl.org
[mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Sam Lantinga
Sent: Saturday, February 23, 2013 12:56 PM
To: SDL Development List
Subject: Re: [SDL] Set video window always on top
**


Not right now, though it’s possible to do.****


What are you planning?****

On Fri, Feb 22, 2013 at 11:27 AM, Zenda Fung
wrote:****

Hi I am new to SDL, is there any way to make the video window always
stay
on top of all windows on Win32 and Linux?****


Zenda****


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



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