~ubuntu-branches/ubuntu/oneiric/kde-workspace/oneiric

« back to all changes in this revision

Viewing changes to debian/patches/0014-Clear-thumbnails-for-deleted-windows.patch

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2011-09-25 00:42:41 UTC
  • Revision ID: package-import@ubuntu.com-20110925004241-c5ck55dokn3yt1kg
Tags: 4:4.7.1-0ubuntu3
* Update debian/kdm.upstart to match latest gdm.upstart improvements:
  - Also export LC_MESSAGES with the rest of locale information
  - When kdm is shut down by a runlevel call, emit an upstart event that can
    be caught by plymouth so it can distinguish between the DM shutting down
    for a runlevel change vs. other causes (LP: #854329)
* Update patches for post-4.7.1 changes.  Add to debian/patches:
    0001-SVN_SILENT-made-messages-.desktop-file.patch
    0003-SVN_SILENT-made-messages-.desktop-file.patch
    0004-SVN_SILENT-made-messages-.desktop-file.patch
    0005-SVN_SILENT-made-messages-.desktop-file.patch
    0006-preferred-app-launchers-need-to-use-the-type-of-the-.patch
    0007-SVN_SILENT-made-messages-.desktop-file.patch
    0009-SVN_SILENT-made-messages-.desktop-file.patch
    0010-add-some-missing-connects-for-the-ruleswidget.patch
    0011-fix-yet-another-fun-with-pointers-tabbing-segfault.patch
    0013-catch-changeMaximize-recursion-from-setNoBorder.patch
    0014-Clear-thumbnails-for-deleted-windows.patch
    0015-Fix-pointer-accesses-in-tiling-code.patch
    0016-SVN_SILENT-made-messages-.desktop-file.patch
    0017-SVN_SILENT-made-messages-.desktop-file.patch
    0018-SVN_SILENT-made-messages-.desktop-file.patch
    0019-Test-for-widget-creation-before-deleting-property-at.patch
    0020-SVN_SILENT-made-messages-.desktop-file.patch
    0023-fix-kiosk-restrictions-for-user-switching-and-logout.patch
    0024-Fix-typo-use-the-right-signal-signature.patch
    0025-Repaint-old-area-of-the-thumbnail.patch
    0026-Use-Client-layoutMetric-to-access-shadowSize-instead.patch
    0027-ShowCalendarPopup-false-suppresses-calendar-popup-an.patch
    0028-show-the-keyboard-on-immediately-entering-a-text-are.patch
    0029-Repaint-the-whole-window-in-the-taskbar-thumbnail.patch
    0030-SVN_SILENT-made-messages-.desktop-file.patch
    0031-Fix-wrong-inital-tab-in-keyboard-kcm.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From aef5a39dc475cd5e1b2c73b2fd190e3b8aeb40b0 Mon Sep 17 00:00:00 2001
 
2
From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= <mgraesslin@kde.org>
 
3
Date: Sat, 10 Sep 2011 07:56:58 +0200
 
4
Subject: [PATCH 14/31] Clear thumbnails for deleted windows
 
5
 
 
6
REVIEW: 102445
 
7
---
 
8
 kwin/effects/taskbarthumbnail/taskbarthumbnail.cpp |    7 +++++++
 
9
 1 files changed, 7 insertions(+), 0 deletions(-)
 
10
 
 
11
diff --git a/kwin/effects/taskbarthumbnail/taskbarthumbnail.cpp b/kwin/effects/taskbarthumbnail/taskbarthumbnail.cpp
 
12
index b453c37..15cd86e 100644
 
13
--- a/kwin/effects/taskbarthumbnail/taskbarthumbnail.cpp
 
14
+++ b/kwin/effects/taskbarthumbnail/taskbarthumbnail.cpp
 
15
@@ -119,6 +119,13 @@ void TaskbarThumbnailEffect::slotWindowAdded(EffectWindow* w)
 
16
 
 
17
 void TaskbarThumbnailEffect::slotWindowDeleted(EffectWindow* w)
 
18
 {
 
19
+    foreach (EffectWindow *window, thumbnails.uniqueKeys()) {
 
20
+        foreach (const Data &thumb, thumbnails.values(window)) {
 
21
+            if (w == effects->findWindow(thumb.window)) {
 
22
+                window->addRepaint(thumb.rect);
 
23
+            }
 
24
+        }
 
25
+    }
 
26
     thumbnails.remove(w);
 
27
 }
 
28
 
 
29
-- 
 
30
1.7.4.1
 
31