~sil2100/compiz-plugins-main/precise_SRU

« back to all changes in this revision

Viewing changes to debian/patches/wall_1015151.patch

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2012-07-17 12:48:07 UTC
  • Revision ID: lukasz.zemczak@canonical.com-20120717124807-np2w3wnxrk7zsl2q
* debian/patches/wall_1015151.patch:
  - [BNR] Compiz crash in movementWindowOnScreen (caused by fix 755842)
    (LP: #1015151)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=== modified file 'wall/src/offset_movement/src/offset-movement.cpp'
 
2
--- old/wall/src/offset_movement/src/offset-movement.cpp        2012-06-19 23:42:45 +0000
 
3
+++ new/wall/src/offset_movement/src/offset-movement.cpp        2012-06-20 06:36:21 +0000
 
4
@@ -28,7 +28,7 @@
 
5
 compiz::wall::movementWindowOnScreen (const CompRect &serverBorderRect,
 
6
                                      const CompRegion &screenRegion)
 
7
 {
 
8
-    CompRegion sbrRegion (static_cast <const CompRect &> (serverBorderRect));
 
9
+    CompRegion sbrRegion (serverBorderRect);
 
10
 
 
11
     /* If the window would be partially offscreen
 
12
      * after it was moved then we should move it back
 
13
@@ -41,8 +41,10 @@
 
14
     int dx = 0;
 
15
     int dy = 0;
 
16
 
 
17
-    for (std::vector <CompRect>::const_iterator it = rem.rects ().begin ();
 
18
-        it != rem.rects ().end ();
 
19
+    const CompRect::vector &rects (rem.rects ());
 
20
+
 
21
+    for (std::vector <CompRect>::const_iterator it = rects.begin ();
 
22
+        it != rects.end ();
 
23
         it++)
 
24
     {
 
25
        const CompRect &r = *it;
 
26