You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
13 years ago
|
Index: kwin/kcmkwin/kwinoptions/windows.cpp
|
||
|
===================================================================
|
||
|
--- kwin/kcmkwin/kwinoptions/windows.cpp.orig
|
||
|
+++ kwin/kcmkwin/kwinoptions/windows.cpp
|
||
|
@@ -46,6 +46,7 @@
|
||
|
#include <kprocess.h>
|
||
|
#include <qtabwidget.h>
|
||
|
|
||
|
+#include <stdlib.h>
|
||
|
#include <X11/X.h>
|
||
|
#include <X11/Xlib.h>
|
||
|
#include <X11/Xutil.h>
|
||
|
@@ -1524,6 +1525,8 @@ void KTranslucencyConfig::load( void )
|
||
|
movingWindowOpacity->setEnabled(movingWindowTransparency->isChecked());
|
||
|
dockWindowOpacity->setEnabled(dockWindowTransparency->isChecked());
|
||
|
|
||
|
+ if( !QFile::exists( QDir::homeDirPath() + "/.xcompmgrrc" ))
|
||
|
+ system( "/bin/cp /etc/opt/kde3/share/config/xcompmgrrc $HOME/.xcompmgrrc" );
|
||
|
KConfig conf_(QDir::homeDirPath() + "/.xcompmgrrc");
|
||
|
conf_.setGroup("xcompmgr");
|
||
|
|
||
|
Index: kwin/kompmgr/kompmgr.c
|
||
|
===================================================================
|
||
|
--- kwin/kompmgr/kompmgr.c.orig
|
||
|
+++ kwin/kompmgr/kompmgr.c
|
||
|
@@ -2431,6 +2431,8 @@ loadConfig(char *filename){
|
||
|
|
||
|
strcat(filename, home);
|
||
|
strcat(filename, configfile);
|
||
|
+ if( access( filename, R_OK ) != 0 )
|
||
|
+ system( "/bin/cp /etc/opt/kde3/share/config/xcompmgrrc $HOME/.xcompmgrrc" );
|
||
|
}
|
||
|
|
||
|
printf("trying '%s' as configfile\n\n", filename);
|