View Full Version : Render Over
Oasisgames
May 3rd, 2008, 04:55 PM
Of course there's "Always on top", but that steals input, so, here's a really simple proposal: Render over. When a window is set to render over, it renders as if it were on top, but doesn't grab input. It could, theoretically, just remain where it is and render twice. One thing I see this being used for is simple overlay video (when combined with a lower opacity). I could be watching some Naruto while also browsing the forums.
some-guy
May 3rd, 2008, 07:08 PM
+1, good idea :D
rcxdude
May 4th, 2008, 10:58 AM
I happen to be working on something just like this right now :) It's a plugin called 'ghost' that moves the window offscreen and then transforms the texture back the the window's original position. Of course it doesn't work yet, but i'll be posting it soon.
maniac
May 4th, 2008, 01:44 PM
I happen to be working on something just like this right now :) It's a plugin called 'ghost' that moves the window offscreen and then transforms the texture back the the window's original position. Of course it doesn't work yet, but i'll be posting it soon.
Using XShape to clear the window input shape is probably easier than moving the window offscreen, especially when handling corner cases, such as viewport changes.
You can have a look at shelf and group on how to clear the window input shape and how to restore it.
SmSpillaz
May 4th, 2008, 03:20 PM
Just as a suggestion, I would suggest using mousepoll to figure out when you have entered the window's area (or, if they work with a cleared input shape, enterNotify). When you enter the window area, the window should go transparent to see where you are clicking ;-)
Oasisgames
May 4th, 2008, 06:03 PM
Just as a suggestion, I would suggest using mousepoll to figure out when you have entered the window's area (or, if they work with a cleared input shape, enterNotify). When you enter the window area, the window should go transparent to see where you are clicking ;-)
That would actually be the exact opposite of the effect I was looking for. I want to be able to fullscreen the window, set it to overlay, and then use what ever is under it while the window still renders fine (after having set an opacity for it). Simplest way to see how this would look: Full screen a video player, lower the opacity, put it in front of Firefox. Now imagine yourself using Firefox in this set up.
I also have a better name: Overlay. Sounds better, better describes the effect, etc.
b0le
May 5th, 2008, 12:58 AM
What about just shaping away input on the window, and set it to always-on-top?
SmSpillaz
May 5th, 2008, 01:35 AM
I want to be able to fullscreen the window, set it to overlay, and then use what ever is under it while the window still renders fine (after having set an opacity for it). Simplest way to see how this would look: Full screen a video player, lower the opacity, put it in front of Firefox. Now imagine yourself using Firefox in this set up.
Because the window's input shape has been cleared, you wont be able to receive ButtonPress events, so modifying the window's opacity will be mighty difficult.
Oasisgames
May 5th, 2008, 01:45 AM
That's why you do it before hand...
b0le
May 5th, 2008, 11:35 AM
Can't you just make an action that changes opacity, shapes window and sets it to 'always on top'. Then you just trigger that action (say from a button on the decorations ;)) and you don't need to manually change opacity / set it always on top and shape the window
Oasisgames
May 17th, 2008, 05:32 PM
I happen to be working on something just like this right now :) It's a plugin called 'ghost' that moves the window offscreen and then transforms the texture back the the window's original position. Of course it doesn't work yet, but i'll be posting it soon.
Very nice. It's exactly what I was looking for.
Seems the automatic filter doesn't quite work, though, but it's great with toggle.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.