LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-01-2004, 06:01 AM   #1
ZX_SA
LQ Newbie
 
Registered: May 2004
Location: Stellenbosch, South Africa
Distribution: Kubuntu breezy, MDK10.2
Posts: 26

Rep: Reputation: 15
Question How to make a SDL-window "Always on top"?


I'm writing an app that needs to display a video stream. I want to do this in a sort of pop-up window that will always be on top of the GUI window. I'm doing the GUI with Qt and the video window with SDL.

SDL can give you the X11 window ID for the SDL window that was created. How can I use this to ensure the window is "Always on top"? Do I have to use X11 to do this and how if I must?

Thanks,
ZX
 
Old 06-01-2004, 07:35 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
if the SDL program is a child of the GUI part (I'm assuming this isn't the root window) then it should appear on top of the GUI part

if the video window is a child of the root window, then the WM will do whatever it wants to do, all you can do is ask it to be on top, most likely this will be ignored .... there might not even be a WM listening to your program asking

if it is a child of the root window, then you could set the overide-redirect thingy on the window, making the WM less likely to ignore you (more like the WM doing nothing to the window)

but in reality there is no way to assume that any program will always be on top of all the other windows
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to download precompiled bash binaries, such as "time" and "top"? elinuxqs Linux - Newbie 12 11-14-2005 08:36 PM
Starting an xterm window that is "always on top" on command line azilkie Fedora 1 10-07-2005 09:17 PM
"The KDE Window Manager" box keeps poping up at the top left... HELP HOLLYW00D Suse/Novell 2 04-23-2005 11:26 AM
How to make sense out of "top" command manofwax Linux - General 6 08-10-2004 11:59 AM
Programs don't like "staying on top" or "always on top" -- any help? SBing Linux - Software 8 07-05-2004 04:41 AM


All times are GMT -5. The time now is 11:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration