Add burg support

This commit is contained in:
Manuel 2011-12-05 12:00:16 +00:00
parent 6df294953e
commit 1a352a332c
3 changed files with 9 additions and 106 deletions

View File

@ -16,7 +16,7 @@ pkgname=('kde-workspace'
arch=('i686' 'x86_64')
pkgver=${_kdever}
pkgrel=1
pkgrel=2
pkgdesc="split package"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
@ -65,11 +65,9 @@ source=($_mirror/${pkgbase}-$_kdever.tar.bz2
# "fix" some sytemsettings modules that need root access
fix_root-only-kcms.patch
# shutdown-fix.patch
sensors-fix.patch)
# fix some issues with the desktop effects and overall performace of Kwin
#fix-kwin-effects.patch
# Fix power profies
#fix-powerprofiles.diff)
sensors-fix.patch
# Add support for Burg
feature_burg-support.diff)
md5sums=(`grep ${pkgbase}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`
`grep kde-wallpapers-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1` # kde-wallpapers
@ -94,9 +92,9 @@ md5sums=(`grep ${pkgbase}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`
'814350c52c135d6f7bdada1e29223d38' # fix_terminate-server.patch
'97a5eb51e6f9d460f0d61bb322a1db5e' # fix_kdm_configdef.patch
'5f963f80a026f0600edae1b1c70411e5' # fix_root-only-kcms.patch
'ecf3a9d6af9bdd3db0189e06ddf21034') # sensors-fix.patch
# '1c85190d0b8371470d903475e9220630' # fix-kwin-effects.patch
# 'd6b4fd2d5c67e9d9b8082b976f3e3811') # fix-prowerprofiles.diff
'ecf3a9d6af9bdd3db0189e06ddf21034' # sensors-fix.patch
'07e698271d959c4966f3df34ec569398') # feature_burg-support.diff
# '13c3203589143e9e2fc757c17375227a' # feature_plasma-transparent-panel-v4-rb#472.patch
# '7361012da217f9aeeca61f0e9956e1d0' # feature_brightness-osd.patch
@ -125,8 +123,8 @@ build()
patch -Np0 -i ${srcdir}/fix_terminate-server.patch
patch -p0 -N -i ${srcdir}/fix_kdm_configdef.patch
patch -Np1 -i ${srcdir}/fix_root-only-kcms.patch
# patch -Np1 -i ${srcdir}/fix-kwin-effects.patch
# patch -Np1 -i ${srcdir}/fix-powerprofiles.diff
patch -p1 -i ${srcdir}/feature_burg-support.diff
# FIXME: update feature patches
# msg "applying feature patches ..."

View File

@ -1,84 +0,0 @@
--- a/kwin/effects.cpp
+++ b/kwin/effects.cpp
@@ -200,7 +200,7 @@ void EffectsHandlerImpl::reconfigure()
void EffectsHandlerImpl::prePaintScreen(ScreenPrePaintData& data, int time)
{
if (current_paint_screen < loaded_effects.size()) {
- loaded_effects[current_paint_screen++].second->prePaintScreen(data, time);
+ loaded_effects.at(current_paint_screen++).second->prePaintScreen(data, time);
--current_paint_screen;
}
// no special final code
@@ -209,7 +209,7 @@ void EffectsHandlerImpl::prePaintScreen(
void EffectsHandlerImpl::paintScreen(int mask, QRegion region, ScreenPaintData& data)
{
if (current_paint_screen < loaded_effects.size()) {
- loaded_effects[current_paint_screen++].second->paintScreen(mask, region, data);
+ loaded_effects.at(current_paint_screen++).second->paintScreen(mask, region, data);
--current_paint_screen;
} else
scene->finalPaintScreen(mask, region, data);
@@ -218,7 +218,7 @@ void EffectsHandlerImpl::paintScreen(int
void EffectsHandlerImpl::postPaintScreen()
{
if (current_paint_screen < loaded_effects.size()) {
- loaded_effects[current_paint_screen++].second->postPaintScreen();
+ loaded_effects.at(current_paint_screen++).second->postPaintScreen();
--current_paint_screen;
}
// no special final code
@@ -227,7 +227,7 @@ void EffectsHandlerImpl::postPaintScreen
void EffectsHandlerImpl::prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time)
{
if (current_paint_window < loaded_effects.size()) {
- loaded_effects[current_paint_window++].second->prePaintWindow(w, data, time);
+ loaded_effects.at(current_paint_window++).second->prePaintWindow(w, data, time);
--current_paint_window;
}
// no special final code
@@ -236,7 +236,7 @@ void EffectsHandlerImpl::prePaintWindow(
void EffectsHandlerImpl::paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data)
{
if (current_paint_window < loaded_effects.size()) {
- loaded_effects[current_paint_window++].second->paintWindow(w, mask, region, data);
+ loaded_effects.at(current_paint_window++).second->paintWindow(w, mask, region, data);
--current_paint_window;
} else
scene->finalPaintWindow(static_cast<EffectWindowImpl*>(w), mask, region, data);
@@ -245,7 +245,7 @@ void EffectsHandlerImpl::paintWindow(Eff
void EffectsHandlerImpl::paintEffectFrame(EffectFrame* frame, QRegion region, double opacity, double frameOpacity)
{
if (current_paint_effectframe < loaded_effects.size()) {
- loaded_effects[current_paint_effectframe++].second->paintEffectFrame(frame, region, opacity, frameOpacity);
+ loaded_effects.at(current_paint_effectframe++).second->paintEffectFrame(frame, region, opacity, frameOpacity);
--current_paint_effectframe;
} else {
const EffectFrameImpl* frameImpl = static_cast<const EffectFrameImpl*>(frame);
@@ -256,7 +256,7 @@ void EffectsHandlerImpl::paintEffectFram
void EffectsHandlerImpl::postPaintWindow(EffectWindow* w)
{
if (current_paint_window < loaded_effects.size()) {
- loaded_effects[current_paint_window++].second->postPaintWindow(w);
+ loaded_effects.at(current_paint_window++).second->postPaintWindow(w);
--current_paint_window;
}
// no special final code
@@ -273,7 +273,7 @@ bool EffectsHandlerImpl::provides(Effect
void EffectsHandlerImpl::drawWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data)
{
if (current_draw_window < loaded_effects.size()) {
- loaded_effects[current_draw_window++].second->drawWindow(w, mask, region, data);
+ loaded_effects.at(current_draw_window++).second->drawWindow(w, mask, region, data);
--current_draw_window;
} else
scene->finalDrawWindow(static_cast<EffectWindowImpl*>(w), mask, region, data);
@@ -282,7 +282,7 @@ void EffectsHandlerImpl::drawWindow(Effe
void EffectsHandlerImpl::buildQuads(EffectWindow* w, WindowQuadList& quadList)
{
if (current_build_quads < loaded_effects.size()) {
- loaded_effects[current_build_quads++].second->buildQuads(w, quadList);
+ loaded_effects.at(current_build_quads++).second->buildQuads(w, quadList);
--current_build_quads;
}
}

View File

@ -1,11 +0,0 @@
--- a/powerdevil/daemon/powerdevilcore.cpp
+++ b/powerdevil/daemon/powerdevilcore.cpp
@@ -88,7 +88,7 @@ void Core::onBackendReady()
{
kDebug() << "Backend is ready, KDE Power Management system initialized";
- m_profilesConfig = KSharedConfig::openConfig("powerdevil2profilesrc", KConfig::FullConfig);
+ m_profilesConfig = KSharedConfig::openConfig("powerdevil2profilesrc", KConfig::SimpleConfig);
// Is it brand new?
if (m_profilesConfig->groupList().isEmpty()) {