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

open /usr/portage/kde-base/kdebase/kdebase-3.3.0.ebuild and put
cd ${S}
epatch ${FILESDIR}/kdebase.kwin-kwin_shadow-3.3.0.patch

at the end of the src-unpack section. then unpack the patch-file and put kdebase.kwin-kwin_shadow-3.3.0.patch in /usr/portage/kde-base/kdebase/files
and then type emerge kdebase

to be able to use this even after an emerge sync, make use of $PORTAGE_OVERLAY. read the gentoo-docs...

Report

C

zuxez

16 years ago

well i'm getting a bit further. the manager now displays windows correctly, and accepts transparency-changes/takes set values when started. but i must figure out, why he restacks a configured window under the toplevel one...and the biggest problem at the moment, is the hunger for cpu-power - it bites my ass with 100% :/ but i'll keep an eye on that...but for now i need a break...

Report

yOyOeK1

16 years ago

xcompmgr is a full hardware rendering. the http://kde-apps.org/content/show.php?content=15781 is grate bat it is unstable with kde3.3. I tray it two times and... when i tried to change settings in ?control canter? the control canter crash. and those hangs from time two time. i give it 9/10 points ! goon. http://kde-apps.org/content/show.php?content=15781 is a software shadow maker. may by get the xcompmgr and ?KWin drop shadow patches for kde3.3? teach them to live together. kwin while by faster and live closer hardware. xcompmgr is a future i think.

Report

C

zuxez

16 years ago

which settings do you have edited?
do you mean this patch here or the other patch, which crashed your control-center?

well, i haven't figured out any conrol-center problems with the kwin-drop-shadow patch. but nobodies an all-seeing eye ;)

Report

yOyOeK1

16 years ago

xcompmgr is a full hardware rendering. the http://kde-apps.org/content/show.php?content=15781 is grate bat it is unstable with kde3.3. I tray it two times and... when i tried to change settings in ?control canter? the control canter crash. and those hangs from time two time. i give it 9/10 points ! goon. http://kde-apps.org/content/show.php?content=15781 is a software shadow maker. may by get the xcompmgr and ?KWin drop shadow patches for kde3.3? teach them to live together. kwin while by faster and live closer hardware. xcompmgr is a future i think.

Report

bardack

16 years ago

Hello! Great Work, something to play with while waiting some enanchement in xcompmgr and transset.

Anyway, what kwin deco are u using in the screenshot?

Thank you and bye bye.

Francesco

Report

C

zuxez

16 years ago

thx...

the win-deco is something i started a while ago, but haven't finished yet, due to other coding-things...

man, if i just could figure out, why my compmgr doesn't work when using a buffering picture for drawing :/

Report

anderslund

16 years ago

There is a patch on this server that provides xcompmgr utilization for kwin, if not drop shadows - where does that fit in for you?

http://www.kde-apps.ohttp://www.kde-apps.org/content/show.php?content=16114rg/content/show.php?content=16114

-anders

Report

C

zuxez

16 years ago

i've noticed that other patch. but it's just a dirty hack to kwin...you still need xcompmgr which is kinda unstable...but i'm working on an reimplementation using c++/qt/(kde)

i still need to implement the drawing routine and 2 events *i think* and then i need to test it, and debug it...and to hope it works, well the first try didn't :(

Report

BuzzBuilder

16 years ago

Are there any special considerations for Mandrake 10.cooker with KDE 3.3? and patching?

Is there an *.rpm in the making somewhere?

My 3.3 is installed by Thacs' RPMS

http://rpm.nyvalls.se/10.0/RPMS/

Report

BuzzBuilder

16 years ago

OOPS!

Warning don't do a page refresh with Mozilla 1.7.2 it doubles the message post.

Sorry.

Report

BuzzBuilder

16 years ago

Are there any special considerations for Mandrake 10.cooker with KDE 3.3? and patching?

Is there an *.rpm in the making somewhere?

My 3.3 is installed by Thacs' RPMS

http://rpm.nyvalls.se/10.0/RPMS/

Report

BuzzBuilder

16 years ago

Are there any special considerations for Mandrake 10.cooker with KDE 3.3? and patching?

Is there an *.rpm in the making somewhere?

My 3.3 is installed by Thacs' RPMS

http://rpm.nyvalls.se/10.0/RPMS/

Report

vanyar

16 years ago

There used to be a Debian binary version of this patch but it's for kde 3.2
Do somebody know about a binary version for Debian with kde 3.3 support.
I'm saying this because we will not have a binary version of x.org for a long long time (also composite it's extremely slow on my ATI Radeon card) and it would be great to have shadows in kwin.

Report

tweakBSD

16 years ago

OK I just patched my kdebase-3.3.0 and my kdelibs-3.3.0 on FreeBSD 5.2.1 and it works quite well, good work. I love it.

You can get precompiled packages for FreeBSD 5.2.1-Release including these patches on
http://tweakBSD.homeunix.org/downloads/packages/5.2.1R/

Note these packages have XFree86-4.3.0 as dependency, not X.org !!!

Report

C

zuxez

16 years ago

thanks...i've just put it to the download-links if it's ok for you. btu i found only a kdelibs*.tbz when following the link

Report

gentooruwest

16 years ago

So, I'm assuming that at this point, kwin doesn't have support for the new composite extension in xorg, correct?

Report

trejkaz

16 years ago

On the other hand, it doesn't actually need to. You can use a separate program to draw the drop shadows, such as xcompmgr is able to do. The only real advantage of getting the support directly into kwin is it might make it easier to toggle on and off.

Report

C

zuxez

16 years ago

hmm i don't know if keith's xcompmgr brought some problems to you as well, at least it did for me...it crashes randomly, and yes toggling of the settings is a real pain, but for transparency it worked within kwin (right-click on windowbar -> advanced -> toggle transparent on off ;)

the other problem is, that keith's shadows aren't drawn relative to the shape of the window, so you wil have corruptions, because they take window_height x window_width, but not every deco is built to fill that space out -> the spare sections give weird colours ;)

and on the other hand, it is a good start to get familiar with x-calls and so on... ;)

Report

trejkaz

16 years ago

Naturally. And my only point was that the window manager doesn't need to know anything about translucency, in order for other applications to use it.

Report

C

zuxez

16 years ago

yeah i know, that, but i don't like the idea of another application to be running to do that. and maybe the get theirself in trouble when both mapping/unmapping windows (program and wm)

but, for the starting the program i'm working on will be a program - man what a useless statement ;)

after this is working, i will think about integrating it into kwin. this way, i don't kill my kwin all the time *hehe* :)

cya

Report

C

zuxez

16 years ago

yes thats right. but i'm 'working' on that - or kinda that.

currently i'm trying to put that thing just as it is in, because doing it by myself gave me stupid badrenderpicture errors, i wasn't able to fix :(

Report

Phemt

16 years ago

just a piece of advice..
xcompmgr is experimental and full of hacks (something like a proof of concept).
Ideally every DE will have his own composite manager so maybe you need to do a new one for kwin (something like kcompmgr or maybe something directly integrated with kwin) but if you integrate kwin with xcompmgr you may loose your time... :-)
anyway great work

Report

C

zuxez

16 years ago

yeah i thought of that allready, but i still tried it, and it didn't work - my fault. at least kwin's not crashing anymore ;)

well i think i'll try from scratch ;)

Report

bretzeltux

16 years ago

Hi there,

Please see http://www.kde-look.org/content/show.php?content=15945

This is my latest shot of my desktop :-)

Thank you again zuxez!:-)

P.S.: As of the time of this writing, I was unable to get the full size screenshot!!! ( it is below 500kb as requiered...??? I am screwd...)

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