LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 12-27-2008, 06:26 PM   #1
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 535

Rep: Reputation: 31
OpenGL desktop... keeping a window below others in X


Hello! I am attempting to make an OpenGL desktop. I have already successfully made an OpenGL slideshow that I have grab the root window. This works fine... except that I want to capture X events (such as mouse and keyboard)... but I can not capture events on the root window (because the window manager has them grabbed?)

So, I want to make a window that always stays below every other window. can i do this? how should I go about doing this?

also, I know in X you can give a window an "alpha" mask, so that it will be transparent in certain areas so you can see other windows below it. can you do an alpha mask on top of an OpenGL context?
 
Old 12-29-2008, 10:00 AM   #2
swodniw
Member
 
Registered: Jan 2006
Posts: 35

Rep: Reputation: 16
If you think for a moment of another name of what you are trying to achieve you will see why it is not easy without a modified kernel or root privileges. Key logger.
 
Old 12-29-2008, 03:36 PM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
They are two specifications (or rather, conventions) that define the interface to the window manager. You need to read them to know how to get the window manager to properly treat your window:

http://tronche.com/gui/x/icccm/ ICCCM - the 'old' or basic specs
http://standards.freedesktop.org/wm-...ec-latest.html - EWMH, a extention to deal with more modern issues (yours is probably in this one)

As for transparency, I think EWMH has something about it, but in the end, its up to the compositing manager to determine how your window is drawn, so you cannot count on transparency.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
opengl window not having title bar-using freeglut for opengl programming in c++ ashjas Fedora 0 01-20-2008 11:44 AM
How to create a transparent OpenGL Window? PaladinOfKaos Programming 0 09-28-2007 07:44 PM
Keeping remote desktop apps active after logout? stefaandk Linux - General 1 05-31-2006 07:47 PM
keeping the terminal window open NNP Linux - General 1 09-01-2005 11:08 PM
OpenGL and the Root window in X The_Nerd Programming 1 04-15-2004 11:21 PM


All times are GMT -5. The time now is 02:41 PM.

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
Open Source Consulting | Domain Registration