~linaro-maintainers/compiz-plugins-main/overlay-gl

« back to all changes in this revision

Viewing changes to debian/patches/fix-862261.patch

  • Committer: Alexandros Frantzis
  • Date: 2012-04-20 12:09:00 UTC
  • Revision ID: alexandros.frantzis@linaro.org-20120420120900-zum58u2c173gi7u3
* debian/*:
  - Sync with latest precise package 1:0.9.7.0~bzr19-0ubuntu10

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
=== modified file 'src/snap.cpp'
2
 
Index: compiz-plugins-main-0.9.6/snap/src/snap.cpp
3
 
===================================================================
4
 
--- compiz-plugins-main-0.9.6.orig/snap/src/snap.cpp    2011-10-08 00:03:55.037329027 +0800
5
 
+++ compiz-plugins-main-0.9.6/snap/src/snap.cpp 2011-10-08 00:04:10.165404044 +0800
6
 
@@ -581,6 +581,13 @@
7
 
        return;
8
 
     }
9
 
 
10
 
+    // don't snap maximized windows
11
 
+    if (window->state () & CompWindowStateMaximizedHorzMask)
12
 
+       dx = 0;
13
 
+
14
 
+    if (window->state () & CompWindowStateMaximizedVertMask)
15
 
+       dy = 0;
16
 
+
17
 
     // avoiding snap, nothing buffered
18
 
     if (!ss->snapping)
19
 
        return;