PDA

View Full Version : I want a small part of compiz code for integrate in a project


TheBootroo
March 9th, 2008, 06:20 PM
hello everyone,

first, excuse my english because i am french

so i am looking about the part of compiz source code which provide the real-time preview of the windows because i need it for a desktop project (gnome-based) and i have downloaded the code but in about 10000 lines, i am lost

then if somebody may send me the source part in question ....

else, i found that compiz fusion is a very impressionnant 3d-desktop (comparated with vista aero and mac os x, :p:p:p that are just little transparency effects ....)


thank you


my e-mail uis bootroo@hotmail.fr

TheBootroo
March 9th, 2008, 06:25 PM
hey ???

there is somebody ???

allô !!!

TheBootroo
March 9th, 2008, 06:27 PM
and if is there any french speaker ....
i speak very badly english then i prefere speaking in french if possible

delfick
March 9th, 2008, 11:56 PM
hello

unfortunately I can't help you with your problem....
(the devs might be able to)

but I can say this is a forum, it's normal to wait 24 _hours_ for a reply
(i.e. don't expect a reply within a _few minutes_ )

.....

SmSpillaz
March 10th, 2008, 02:00 PM
See switcher.c (in compiz) line 1486. Each window has a CompTexture (w->texture) that you can use. You will not be able to get the texture and use it in gnome however, you'll have to make a separate plugin for compiz to paint the thumbnail (I would suggest looking at the wallpaper plugin to see how it paints the background for nautilus via compiz).

TheBootroo
March 11th, 2008, 07:16 PM
thanks SmSpillaz

but the problem is that i go to create a desktop gnome-based and not compiz-based because compiz needs the drivers and i want just the preview function...

why cant i just include the code in my code and show the preview directly on the desktop ?

then if there is another medium for do what i want because i think that plugin for compiz needs compiz and i can't load compiz with my VIA CLE266 IGP.
and i not alone in this case
i try to create a lightweight desk but with some visual effects
it's why i post this mail : i search how i can include the real-time preview fonction without must install and activate compiz


thanks for all

i wait your answer

bye

some-guy
March 11th, 2008, 07:24 PM
thanks SmSpillaz

but the problem is that i go to create a desktop gnome-based and not compiz-based because compiz needs the drivers and i want just the preview function...

why cant i just include the code in my code and show the preview directly on the desktop ?

then if there is another medium for do what i want because i think that plugin for compiz needs compiz and i can't load compiz with my VIA CLE266 IGP.
and i not alone in this case
i try to create a lightweight desk but with some visual effects
it's why i post this mail : i search how i can include the real-time preview fonction without must install and activate compiz


thanks for all

i wait your answer

bye
It's not possible to use compiz's code then (correct me if I'm wrong) as t is the window manager and draw's the windows using textures, however the only way to do that is to get the texture/pixmap from the window manager, and so you'll have to make your own code, and that is if metacity supports something like this

SmSpillaz
March 11th, 2008, 10:44 PM
You'll need to do it from within compiz if you want accelerated GL thumbnails. Otherwise you will need to write your own composite manager that somehow supports your hardware.

If you don't mind the thumbnails not being accelerated with OpenGL, but instead with XRender, you can give this a try
(http://ktown.kde.org/%7Efredrik/composite_howto.html)

TheBootroo
March 12th, 2008, 09:03 AM
thank you so much

i go to try with xrender

TheBootroo
March 27th, 2008, 07:32 AM
but does xrender provide real-time actualized thumbails ?

Or just a capture, like the "PrintScr" of the keyboard ?

SmSpillaz
March 27th, 2008, 10:28 AM
As far as I know, real-time

cchumi
April 15th, 2008, 09:19 AM
Hi i read this topic and i must said that this functionnality make me interest.

I want to know if you have tried and if you have realize this project .

Thanks :)