Commit e4924661 authored by totte's avatar totte
Browse files

kde-workspace: Add plasma-panel-resize-hint patch

parent 5dc14634
...@@ -111,7 +111,8 @@ source=("http://download.kde.org/stable/${pkgver}/src/${pkgname}-$pkgver.tar.xz" ...@@ -111,7 +111,8 @@ source=("http://download.kde.org/stable/${pkgver}/src/${pkgname}-$pkgver.tar.xz"
'07_always_show_kickoff_subtext.patch' '07_always_show_kickoff_subtext.patch'
'09_enable_start-shutdown-scripts.patch' '09_enable_start-shutdown-scripts.patch'
'fix_terminate-server.patch' 'fix_terminate-server.patch'
'fix_root-only-kcms.patch') 'fix_root-only-kcms.patch'
'plasma-panel-resize-hint.diff')
#sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1` #sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`
sha256sums=('3b99a3991d6d8b1aa4158da67ead30cabb815c07a6c8ee10751307f97d8613cf' sha256sums=('3b99a3991d6d8b1aa4158da67ead30cabb815c07a6c8ee10751307f97d8613cf'
`grep kde-wallpapers-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1` `grep kde-wallpapers-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`
...@@ -147,6 +148,7 @@ prepare() { ...@@ -147,6 +148,7 @@ prepare() {
patch -Np0 -i ${srcdir}/09_enable_start-shutdown-scripts.patch patch -Np0 -i ${srcdir}/09_enable_start-shutdown-scripts.patch
patch -p0 -i ${srcdir}/fix_terminate-server.patch patch -p0 -i ${srcdir}/fix_terminate-server.patch
patch -p1 -i ${srcdir}/fix_root-only-kcms.patch patch -p1 -i ${srcdir}/fix_root-only-kcms.patch
patch -p1 -i ${srcdir}/plasma-panel-resize-hint.diff
# Disable krandr # Disable krandr
sed -i "s/add_subdirectory(randr)//g" ./kcontrol/CMakeLists.txt sed -i "s/add_subdirectory(randr)//g" ./kcontrol/CMakeLists.txt
......
Index: plasma/desktop/shell/panelcontroller.cpp
===================================================================
--- plasma/desktop/shell/panelcontroller.cpp.orig
+++ plasma/desktop/shell/panelcontroller.cpp
@@ -663,6 +663,8 @@ void PanelController::mouseMoveFilter(QM
newX = qMin(newX, screenGeom.left() + screenGeom.width()/3);
move(newX, pos().y());
resizeFrameHeight(geometry().left() - screenGeom.left());
+ m_sizeTool->setText(i18n("Width: %1", geometry().left() - screenGeom.left()));
+
break;
}
case Plasma::RightEdge: {
@@ -671,6 +673,8 @@ void PanelController::mouseMoveFilter(QM
newX = qMax(newX, screenGeom.left() + 2*(screenGeom.width()/3) - width());
move(newX, pos().y());
resizeFrameHeight(screenGeom.right() - geometry().right());
+ m_sizeTool->setText(i18n("Width: %1", screenGeom.right() - geometry().right()));
+
break;
}
case Plasma::TopEdge: {
@@ -679,6 +683,9 @@ void PanelController::mouseMoveFilter(QM
newY = qMin(newY, screenGeom.top() + screenGeom.height()/3);
move(pos().x(), newY);
resizeFrameHeight(geometry().top() - screenGeom.top());
+ m_sizeTool->setText(i18n("Height: %1", geometry().top() - screenGeom.top()));
+
+
break;
}
case Plasma::BottomEdge:
@@ -688,6 +695,8 @@ void PanelController::mouseMoveFilter(QM
newY = qMax(newY, screenGeom.top() + 2*(screenGeom.height()/3) - height());
move(pos().x(), newY);
resizeFrameHeight(screenGeom.bottom() - geometry().bottom());
+ m_sizeTool->setText(i18n("Height: %1", screenGeom.bottom() - geometry().bottom()));
+
break;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment