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

« back to all changes in this revision

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

  • Committer: Sam Spilsbury
  • Date: 2011-10-07 16:09:42 UTC
  • Revision ID: sam.spilsbury@canonical.com-20111007160942-9zkw97vowa95galq
Added some new patches

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;