View previous topic :: View next topic |
Author |
Message |
Toph n00b
Joined: 02 Jun 2003 Posts: 24
|
Posted: Tue Sep 28, 2004 9:37 pm Post subject: Transparency in Metacity-2.85 |
|
|
For those already using Gnome-2.8:
Here's a patch against metacity-2.85 that let's you use transparency. And here's the screenshot
Features:
1. Windows turn transparent when dragged.
2. Window menu has an entry to toggle transparent/opaque.
3. A keybinding to do the same, ALT+F3 in the current patch, and configurable using the gconf entry:
/apps/metacity/window_keybindings/transparent
I've hacked a 4th feature into the patch: Control the opacity with your mouse's scrollwheel! Just move the pointer onto the window's frame and scroll the wheel up or down to in/decrease transparency.
The enhanced patch can be found here. |
|
Back to top |
|
|
CNaylor n00b
Joined: 03 Sep 2004 Posts: 53 Location: Central Illinois (USA)
|
Posted: Wed Sep 29, 2004 12:27 am Post subject: |
|
|
Could you please explain how one would go about applying this patch? |
|
Back to top |
|
|
Toph n00b
Joined: 02 Jun 2003 Posts: 24
|
Posted: Wed Sep 29, 2004 10:10 am Post subject: |
|
|
Well, you could hack it into the ebuild, or just build metacity-2.8.5 yourself:
1. Unpack metacity-2.85: Code: | tar -xvjf /usr/portage/distfiles/metacity-2.8.5.tar.bz2 |
2. Patch metacity: Code: | cd metacity-2.8.5
bzcat /PATH-to-PATCH/metacity-2.8.5.transparent_scroll.diff.bz2|patch -p1 |
3. Configure and build metacity: Code: | source /etc/make.conf
./configure --disable-compositor --disable-render --with-x --prefix=/usr
make -j3 |
4. Test the new metacity: Code: | cd src
./metacity --replace |
5. If you like it, install it: Code: | cd ..
sudo make install |
6. Enjoy the eyecandy! |
|
Back to top |
|
|
nyda Apprentice
Joined: 12 Aug 2004 Posts: 183
|
Posted: Wed Sep 29, 2004 3:50 pm Post subject: |
|
|
The window titles in the screenshot look like they're using an additive algorithm. Looks pretty odd to me :/
Also, does this use metacities lame old compositing or is it using the hw-accelerated code from the xcompmgr source ? |
|
Back to top |
|
|
Toph n00b
Joined: 02 Jun 2003 Posts: 24
|
Posted: Wed Sep 29, 2004 4:13 pm Post subject: |
|
|
If you compile metacity with '--disable-render --disable-compositor', everything is handled by xcompmgr, AFAIK. When compiled this way, the window-titles also appear just normal (my screenshot).
The patched metacity is running really well on my box (quite powerful: 2x1200MHz AthlonMP, nvidia GF3). Only resizing windows is a bit slow and leaves some artifacts in some situations. |
|
Back to top |
|
|
yodi Tux's lil' helper
Joined: 14 May 2004 Posts: 88 Location: Liverpool, England
|
Posted: Wed Oct 13, 2004 7:15 pm Post subject: |
|
|
Just applyed the patch's , that some pretty cool work there I have to say !
Nice work ! =) _________________ All Servers :: Offline [no connection]
Gallery :: Visit Here
Homepage :: Visit Here
|
|
Back to top |
|
|
lucif3r Tux's lil' helper
Joined: 01 Sep 2004 Posts: 85 Location: Kingston, Ontario - Canada
|
Posted: Fri Nov 19, 2004 5:41 pm Post subject: |
|
|
Here is an ebuild for those who want it. I have tested it with metacity-2.8.6 so it works with that. If you want to use 2.8.5 just change the ebuild name.
You will need the 'enhanced' scroll patch for this ebuild unless you want to edit it (not exactly hard to do).
It works great though thanks.
http://nicola.homelinux.org/archives/2004/11/ebuild_for_meta.php _________________ "Take THAT Lisa's belief's" - Homer |
|
Back to top |
|
|
lucif3r Tux's lil' helper
Joined: 01 Sep 2004 Posts: 85 Location: Kingston, Ontario - Canada
|
Posted: Fri Nov 19, 2004 5:52 pm Post subject: |
|
|
Oh I did have one questions. Is there a way to enable transparency for menus without enabling it for the whole window? That would be great. |
|
Back to top |
|
|
suineg Apprentice
Joined: 02 Mar 2004 Posts: 200 Location: Los Angeles
|
Posted: Fri Nov 19, 2004 8:53 pm Post subject: Re: Transparency in Metacity-2.85 |
|
|
can I ask what panel that is on the left side of your display? |
|
Back to top |
|
|
lucif3r Tux's lil' helper
Joined: 01 Sep 2004 Posts: 85 Location: Kingston, Ontario - Canada
|
Posted: Sat Nov 20, 2004 3:46 pm Post subject: |
|
|
It's a desklet. Go to the gDesklets homepage to find out more about them. You can also search the forms for instructions on how to install them. I have found they don't work so good with gnome 2.8 though.
Also did anyone here know that GLX does not work with COMPOSITE enabled? That sucks, so no transparency for me. Somehow I think linux will never have transparency and drop shadow working well with everything else. _________________ "Take THAT Lisa's belief's" - Homer |
|
Back to top |
|
|
y0zza n00b
Joined: 30 Jul 2004 Posts: 68
|
Posted: Sat Nov 20, 2004 5:38 pm Post subject: |
|
|
This patch is fantastic. It's as if Metacity has composite support built in natively, but without that excruciatingly slow speed of the actual compositor in Metacity.
Many thanks indeed for the patch and ebuild. Works great with Metacity 2.8.6 here.
lucif3r,
If you're using the 66.29 Nvidia drivers, you should add:
Code: | Option "AllowGLXWithComposite" "yes" |
to your xorg.conf file. Although Nvidia states that the option is highly experimental at this stage and may break certain OpenGL apps. |
|
Back to top |
|
|
lucif3r Tux's lil' helper
Joined: 01 Sep 2004 Posts: 85 Location: Kingston, Ontario - Canada
|
Posted: Sat Nov 20, 2004 7:42 pm Post subject: |
|
|
Thanks for the tip. Although am going to skip it. The 66.29 driver suck on my card. I had to downgrade to 6111 to get Enemy Territory working properly again.
Glad the ebuild is working for you though. It's the first ebuild I have submitted to the forums. _________________ "Take THAT Lisa's belief's" - Homer |
|
Back to top |
|
|
unz l33t
Joined: 28 Jul 2004 Posts: 819 Location: Roma, Italia
|
Posted: Tue Dec 07, 2004 11:51 am Post subject: |
|
|
This patched metacity rocks ... xcompmgr works pretty good now ...
.. but ... now my gnome-panel is covered by maximized windows,
have you got any tips to workaround this behaviour? _________________ Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/ |
|
Back to top |
|
|
CNaylor n00b
Joined: 03 Sep 2004 Posts: 53 Location: Central Illinois (USA)
|
Posted: Tue Dec 07, 2004 8:37 pm Post subject: |
|
|
That one's easy. Restart gnome-panel. Starting/stopping xcompmgr can have this effect and a restart of gnome-panel does the trick. |
|
Back to top |
|
|
unz l33t
Joined: 28 Jul 2004 Posts: 819 Location: Roma, Italia
|
Posted: Tue Dec 07, 2004 10:17 pm Post subject: |
|
|
nice move mate!!!
tnx a lot _________________ Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/ |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Tue Dec 07, 2004 11:33 pm Post subject: |
|
|
Metacity 2.8.8 recently came out, and it's supposed to work better with compositing:
http://mail.gnome.org/archives/ftp-release-list/2004-December/msg00027.html
Quote: | * Don't try to use an ARGB visual at all if the depth isn't
32-bit. This caused major slowdowns with Composite
enabled. (Anders) |
You may have to edit the ebuild to get it to compile with the compositor enabled. |
|
Back to top |
|
|
unz l33t
Joined: 28 Jul 2004 Posts: 819 Location: Roma, Italia
|
Posted: Wed Dec 08, 2004 10:19 am Post subject: |
|
|
mm i think my monitor LCD goes RGBA to render fonts ...
... 32 bit? my xorg is setted up 24 ...
i patched metacity-2.8.8 too .. and it seems stable ... is someone testing out the bundled compositor? _________________ Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/ |
|
Back to top |
|
|
westboy21 Tux's lil' helper
Joined: 10 Oct 2003 Posts: 135 Location: Raleigh, North Carolina
|
Posted: Wed Jan 12, 2005 6:10 am Post subject: |
|
|
Does anyone know if this patch still works well with metacity 2.8.8, and where you can get the patch now? The origional link is gone. |
|
Back to top |
|
|
UB|K l33t
Joined: 27 May 2004 Posts: 786 Location: Villeurbanne, France
|
Posted: Wed Jan 12, 2005 11:49 am Post subject: |
|
|
westboy21 wrote: | Does anyone know if this patch still works well with metacity 2.8.8, and where you can get the patch now? The origional link is gone. |
yes, this patch works with 2.8.8 and the other good news is i can host it here
Have fun with it |
|
Back to top |
|
|
westboy21 Tux's lil' helper
Joined: 10 Oct 2003 Posts: 135 Location: Raleigh, North Carolina
|
Posted: Wed Jan 12, 2005 6:51 pm Post subject: |
|
|
I wasn't sure if the patch "metacity-2.8.5.transparent_scroll.diff.bz2" was the full patch or not. But it sounds as though it is. Thanks! |
|
Back to top |
|
|
angel79 n00b
Joined: 17 Sep 2003 Posts: 1 Location: London
|
Posted: Thu Mar 24, 2005 7:08 pm Post subject: |
|
|
Very impressive stuff!
I especially like the transparency when dragging but opaque when not, that is precisely what I wanted and I didn't even realise it until I saw it in action.
Not sure if this is the best way to apply the patch but here's what I did...
Code: |
ebuild /usr/portage/x11-wm/metacity/metacity-2.8.8.ebuild unpack
cd $PORTAGE_TMPDIR/portage/metacity-2.8.8/work/metacity-2.8.8
bzcat /PATH-to-PATCH/metacity-2.8.8.transparent_scroll.diff.bz2|patch -p1
ebuild /usr/portage/x11-wm/metacity/metacity-2.8.8.ebuild compile
ebuild /usr/portage/x11-wm/metacity/metacity-2.8.8.ebuild install
ebuild /usr/portage/x11-wm/metacity/metacity-2.8.8.ebuild qmerge
|
Hope that's of use to someone.
Only thing I'm not 100% happy with is now my gdesklets have drop shadows. Not a major problem and most people probably wouldn't notice if they used my machine as I use a dark background but I notice it
Angel |
|
Back to top |
|
|
|