~compiz-team/compiz-snap-plugin/compiz_snap_plugin.fix_872177

« back to all changes in this revision

Viewing changes to src/snap.cpp

  • Committer: Sam Spilsbury
  • Date: 2011-09-29 11:25:41 UTC
  • mfrom: (57.1.1)
  • Revision ID: git-v1:36c7f379247dd93dfb7c1242fd36968f62dbeee0
MergeĀ lp:~compiz-team/compiz-snap-plugin/compiz-snap-plugin.fix_862261

Show diffs side-by-side

added added

removed removed

Lines of Context:
681
681
        return;
682
682
    }
683
683
 
 
684
    // don't snap maximized windows
 
685
    if (window->state () & CompWindowStateMaximizedHorzMask)
 
686
        dx = 0;
 
687
 
 
688
    if (window->state () & CompWindowStateMaximizedVertMask)
 
689
        dy = 0;
 
690
 
684
691
    // avoiding snap, nothing buffered
685
692
    if (!ss->snapping)
686
693
        return;