1 |
dilfridge 11/11/20 22:18:47 |
2 |
|
3 |
Added: kdelibs-4.7.3-customcont.patch |
4 |
Log: |
5 |
No more windows hidden behind background, bug 365623 |
6 |
|
7 |
(Portage version: 2.1.10.36/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 kde-base/kdelibs/files/kdelibs-4.7.3-customcont.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.7.3-customcont.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.7.3-customcont.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: kdelibs-4.7.3-customcont.patch |
16 |
=================================================================== |
17 |
commit 5aad39dbb324aad4cac3f44967ee1fc1b3d2a168 |
18 |
Author: Aaron Seigo <aseigo@×××.org> |
19 |
Date: Sun Nov 20 18:50:41 2011 +0100 |
20 |
|
21 |
don't count custom panel contaiments (e.g. the grouping desktop) the same as a desktop containment |
22 |
|
23 |
from the "useful things missing from bug reports" and "wondering wtf is wrong with people |
24 |
while trying to get the useful bits out of a bug report" files ... |
25 |
|
26 |
BUG:260360 |
27 |
|
28 |
diff --git a/plasma/containment.cpp b/plasma/containment.cpp |
29 |
index 00a8a77..9e3a505 100644 |
30 |
--- a/plasma/containment.cpp |
31 |
+++ b/plasma/containment.cpp |
32 |
@@ -987,7 +987,9 @@ void ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventIn |
33 |
//kDebug() << activity() << "setting screen to " << newScreen << newDesktop << "and type is" << type; |
34 |
|
35 |
Containment *swapScreensWith(0); |
36 |
- if (type == Containment::DesktopContainment || type >= Containment::CustomContainment) { |
37 |
+ const bool isDesktopContainment = type == Containment::DesktopContainment || |
38 |
+ type == Containment::CustomContainment; |
39 |
+ if (isDesktopContainment) { |
40 |
// we want to listen to changes in work area if our screen changes |
41 |
if (toolBox) { |
42 |
if (screen < 0 && newScreen > -1) { |
43 |
@@ -1011,8 +1013,7 @@ void ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventIn |
44 |
} |
45 |
} |
46 |
|
47 |
- if (newScreen < numScreens && newScreen > -1 && |
48 |
- (type == Containment::DesktopContainment || type >= Containment::CustomContainment)) { |
49 |
+ if (newScreen < numScreens && newScreen > -1 && isDesktopContainment) { |
50 |
q->resize(corona->screenGeometry(newScreen).size()); |
51 |
} |