I just can't seem to get a grasp on patch files. I'm still reading but getting a little frustrated so I am turning to you guys for help
. I use compiz-fusion with 13.0. With KDE 4.2.4 it was possible to set your wallpapercolor to wallpapercolor=0,0,0,0 which would disable KDE drawing the wallpaper and make the desktop translucent. This was especially useful for compiz wallpaper plugin so that you could have different wallpapers on each side of the cube. I recently upgraded to KDE 4.3.1 via the packages posted on the forums and the above hack no longer works. So I spent some time around various forums and found out that is was a code revision to the desktopview.ccp file about 7 moths ago. Here is the original patch that disables the hack.
http://websvn.kde.org/trunk/KDE/kdeb...340&view=patch
I disabled this line by hand and recompiled kde-workspace-4.3.1 with a slackbuild I made and its now working again. But I wanted to write a patch just to learn a little more and for my X64_86 partition so i wouldn't have to edit the file by hand. Here is my attempt at a patch
diff -ur kde-workspace-4.3.1/plasma/shells/desktop/desktopview.cpp kde-workspace-4.3.1/plasma/shells/desktop/desktopview.cpp
--- kde-workspace-4.3.1/plasma/shells/desktop/desktopview.cpp
+++ kde-workspace-4.3.1/plasma/shells/desktop/desktopview.cpp
@@ -59,6 +59,7 @@
m_dashboardFollowsDesktop(true),
m_init(false)
{
- setAttribute(Qt::WA_TranslucentBackground, false);
+ setAttribute(Qt::WA_TranslucentBackground, true);
setFocusPolicy(Qt::NoFocus);
#ifdef Q_WS_WIN
setWindowFlags(Qt::FramelessWindowHint);
However I get an error saying "patch: **** malformed patch at line 12: setWindowFlags(Qt::FramelessWindowHint);
As you can probably see I just want to replace one line of code. Could someone please explain to me what I am doing wrong. Thanks