KWin drop shadow patches for kde3.3

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5.0
Description:

KDE 3.3 port of this one:
http://www.kde-look.org/content/show.php?content=10567

it's an alternative to the programs using xcomposite extension, but it's kinda slower :/

kde 3.2.3/3.2.2/3.2.1/3.2 is supported as well, but won't be maintained any-more.

this patch, gives kwin the ability to put a shadow around any type of window.

configuration is done in kcontrol->appearance & themes->window decorations->shadows

two notes:
-shadows are calculated by cpu, so don't use this on slow machines
-focus-follows-mouse could be a bad idea -> lots of shadow-redrawing
Last changelog:

16 years ago

made patch apply cleanly onto kde3.3.1

added debian package - thx to phretor
added gentoo-patch sent by Chris D.
added freebsd package - thx to tweakBSD

updated kdelibs-patch dir-naming-scheme, so that it behaves like the kdebase-patch (thanks to Stephen L. for pointing that out)

see CHANGELOG in the patch-file

C

zuxez

16 years ago

hmm it doesn't work for me too :(
just that tiny preview is displayed

but if you want you can mail it to me and i'll put it up on my homepage to the other 3 ;)

Report

bretzeltux

16 years ago

I don't understand... I clicked on the link and it does work for me, and please, click on the download url instead of the thumb: I did upload on the upload file - not on the screenshots upload :-)

Report

C

zuxez

16 years ago

hi folks!

well i just did some kwin-hacking again ;)

transparency can be toggled per kwin, so there's no need for transset ;)

if i can bite my ass, i will do some more research about xcmoposite and xcompmgr for kwin-integration ;)

but for now its time to get some sleep (-_-)zzzZzzZzzzzz

Report

sparxxxie

16 years ago

Any word on a SuSE RPM for this???

Report

C

zuxez

16 years ago

sorry, i cant built those packages. or is there a possibility to do so without the specific distro?

and if there would be someone building such a package, i would host it on some webspace, or put the link on the download-section

Report

texstar

16 years ago

Thanks for the patches. The kdebase patch is one heck of a big patch but it patched clean and works beautiful on PCLinuxOS. Thanks again for the fine code and the time you spent making it.

Tex

Report

C

zuxez

16 years ago

thanx, glad to hear that you like it.

but i 'just' ported and modified the patch...but it was hard enough to understand whats happening in there ;)

the kdelibs3.3 and kdebase3.3 patch should apply without any warning on kde 3.3.0...


by the way: was anyone so heroic and tried the binary? i would be interested, wheather it works or not - if not, i could just delete it (but backup your original libs first)

Report

DFanick

16 years ago

Hello again!

I found it by myself:

http://forums.gentoo.org/viewtopic.php?t=213246&highlight=gnome+2+7

It's is understandable even if you don't understand polish (like me).

I have to use Gnome for it... and I think I'll be back to kde when it's implementet into it.

It looks too good!

(I see the compiling of a shell in the background of my browser while i write this.)

Report

C

zuxez

16 years ago

ship should be chip ;)

well, if you like kde, you could just use metacity instead of kwin and could still use kde, but without the windeco...

Report

DFanick

16 years ago

I tried it: Kde3.3 with metacity but it didn't work as with gnome2.6. The shadows didn't appear when I put the "xcompmgr -c" in the Autostart folder.

Also "alt+f2" didn't work anymore and so i'm back to gnome even if i kde is realy fine & fast.

I like transparancy too much,

DFanick

Report

C

zuxez

16 years ago

good to hear that, but my cpu is too slow :/ without anything running, moving a window gets me 100% cpu-usage and then it begins to slow everything down, until it finally hangs complety until kill per ssh :(

my laptops cpu is strong enough, but the graphics ship is not :/

i'll checkout cvs tomorrow, maybe there is some new code

ok i've got to hang on that shell-script here again...

Report

DFanick

16 years ago

I've got an Pentium4 1.8 GHz, 756MB and a nvidia geforce2 (64mb) at 32bpp and 1280x1024 pixels.

And it's all very good and smooth usable even if more cpu-power is used (if I shake a window with the mouse like an whisky-mixer I also get nearly about 100% cpu-usage, but while typing this, listening to music and sharing some files I also have about 0% cpu-usage).

Eye-candied,

DFanick

www.gentoo.org

Report

DFanick

16 years ago

Hi!

Nice project!

Can you tell me how to enable those nice transparency-effects like your screenshot with the xorg-x11-6.7.99.903.ebuild?

With bleeding Gentoo! greetings,

DFanick

Report

C

zuxez

16 years ago

thanx, but you should thank deciare, because he was the original coder of this patch

well, you should know that the current state of xcomposite/xdamage/xshadow is unstable. its slow, and causes some shadow-corruptions.

but if you just want to try it, you can set in /etc/portage/package.unmask
>=x11-base/xorg-x11-6.7.99.2
x11-misc/xcompmgr
x11-misc/transset

to unmask the needed ebuilds. then you can emerge it by calling:
emerge xorg-x11 xcompmgr transset

(maybe you need to 'emerge sync' before)

you need to uninstall xfree first, if it is installed.

don't expect too much, but with a fast cpu and a good gfx-card it could be useable. by the way, you have to download about 45megabytes of data...

Report

bretzeltux

16 years ago

...But you talk about xorg 6.8_pre on your laptop...Where did you get it ??

The windeco is... wonderful! again, where did you get it ?? it's your work ?

All this make me envy you :-)

At least, thank you for the shots...I am dying to have drop shadows on my desktop . I have no time to figure out how to patch/compile/error/patch_again/compile_again ...etc... .


Chears
Bretzel

Report

C

zuxez

16 years ago

well the snapshot was in gentoo-portage some days ago. i thought i could give it a try. but you can achieve the same with the cvs-version. should be even better this way. i don't think that there are packages for distributions out yet...

well patching/installing is described in the install-file *wonderwonder* :)

well its not more as wget your.fave.host/.../kde/stable/3.3/src/kdebase.*.tar.bz2
tar jxf kdebase.*.tar.bz2
cd kdebase.*
patch -p0 < path/to/patch/kdebase.kwin_shadow*
./configure ..prefix=$KDEDIR && cd kwin && make && make install

instead of wget you could your distributions kdebase-src package, if there is one in the matching version


about the windeco: where i get it? between the left and right side of my head ;) or this way: yeah its my work...but it's not finished yet...you should be glad, that you haven't seen the shaded mode yet, you would be scared a lot ;)
i need some buttons...i have already ideas, but i'm not getting started to make them to buttons :/

Report

bretzeltux

16 years ago


First thank you for your hints on patching ...

2- there is also a patch file:
"kdelibs.kdefx-kwin_shadow-3.3.0.patch"

that certainly needs the kdelibs sources, so I am really not confortable to spend a whole day compiling kdelibs...

Finally:
I have applied your patch and recompiled kwin.
compile and install went without incidents. But after restarting kde I can't see nothing different, no shadow, nor any places to enable it ... I am looking silly I know. I don't know what to do ... It has something to do with your kdelibs patch ??? ( please tell me it is not necessary :-( )
...help ? I am really dying to have this shadow dropsfx. And again about the windeco on your scrnshot ? how can I get it ?

Chears, thank you again ,
Bretzel

Report

bretzeltux

16 years ago

Ho no!!!!!!!!!11
I AM SO Stupid, I have found your work in kcontrol under windeco -> shadows... I should have not post so quickly here!!!!


Then,
Sorry, my mistake ( you have read nothing ok ?) :-)

Chears,
nobody ...

Report

qbast

16 years ago

You seem to misunderstand about Xorg "server side" shadows. Xorg only gives general possibility to do something with pixel before painting. Actual shades/ transparency/ weirdest imaginable eye-candy is done by client - "compositing manager". Example of such a client is xcompmgr (and you probably used it) but is it only quick hack. Good place for compositing manager is window manager (Metacity has such functionality in CVS) so I don't think that it should be last release of shadow-patch - you can just change underlying technology to Composite extension.

Report

C

zuxez

16 years ago

@qbast: ok you were right. xserver just puts the things together you give it, but that makes the thing a bit more difficult for me :/

but lets see if there's a chance to get this working...

Report

C

zuxez

16 years ago

me, my english and my expression argh ;)

WARNING: i'm thinking again ;)

i know that it uses the xcomposite extension. just using 24bit for colors and using the rest (8 bits) for alpha-blends. its just a module which can be loaded by xorg. its quite not fully useable (as you can see on the xorg_screenshot -> shadows are corrupted a bit) and its kinda slow, too. but it gives a start on this things.
ok qt-menu-transparency is borked when xcomposite enabled, and windowmoving without real hardwareaccel is a real pain.

and in my opinion i still think its server-side, because of the xcomposite-extension in the xserver it uses. metacity just utilizes this extension. so the client (metacity) is only controling the window shadows/translucency rendered by the server

but, i could be completely wrong again :D

well i'm not using it at all at the moment. cause it slows down gaming, even without 'seen' shadows/trancparency. but i will stay in touch, as i just replaced xorg-x11 install which comes with portage on gentoo, with xorg-x11-cvs which came from my side ;)

what i would like in the xserver-design would be a modularization (strange word? :) like the linux-kernel has. we would be able to perform module-[un-][re-]loads on the fly, without restarting the xserver...damn, i like to dream :D

Report

16 years ago

made patch apply cleanly onto kde3.3.1

added debian package - thx to phretor
added gentoo-patch sent by Chris D.
added freebsd package - thx to tweakBSD

updated kdelibs-patch dir-naming-scheme, so that it behaves like the kdebase-patch (thanks to Stephen L. for pointing that out)

see CHANGELOG in the patch-file

12345678910
Be the first to comment
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
its still 0.8
updated Oct 20 2004
added Aug 29 2004
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1