]> git.pld-linux.org Git - packages/kde4-kdebase-workspace.git/blame - kde4-kdebase-workspace-pager.patch
- rel 5
[packages/kde4-kdebase-workspace.git] / kde4-kdebase-workspace-pager.patch
CommitLineData
08be0a90
AM
1--- workspace/plasma/desktop/applets/pager/pager.cpp 2010/03/30 20:26:34 1109233
2+++ workspace/plasma/desktop/applets/pager/pager.cpp 2010/03/30 20:27:36 1109234
3@@ -1172,9 +1172,10 @@
4
5 painter->drawRect(rect);
6
7- if ((rect.width() > 16) && (rect.height() > 16) && m_showWindowIcons) {
8- painter->drawPixmap(rect.x() + (rect.width() - 16) / 2, rect.y() + (rect.height() - 16) / 2, 16, 16,
9- KWindowSystem::icon(m_windowRects[i][j].first, 16, 16, true));
10+ int size = qMin(16, qMin(rect.width(), rect.height()));
11+ if (size >= 12 && m_showWindowIcons) {
12+ painter->drawPixmap(rect.x() + (rect.width() - size) / 2, rect.y() + (rect.height() - size) / 2, size, size,
13+ KWindowSystem::icon(m_windowRects[i][j].first, size, size, true));
14 }
15 }
16 }
This page took 0.057554 seconds and 4 git commands to generate.