]> Dogcows Code - chaz/openbox/commitdiff
don't let windows snap to themself
authorDana Jansens <danakj@orodu.net>
Thu, 8 Aug 2002 23:02:52 +0000 (23:02 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 8 Aug 2002 23:02:52 +0000 (23:02 +0000)
src/Window.cc

index 3935f829db38265642189df0f88a2a8f32d47b0b..fae990b63cb0e92435ac7cfd701788bce0526af9 100644 (file)
@@ -3153,7 +3153,8 @@ void BlackboxWindow::doWindowSnapping(int &dx, int &dy) {
     const BlackboxWindowList& stack_list = w->getStackingList();
     BlackboxWindowList::const_iterator st_it, st_end = stack_list.end();
     for (st_it = stack_list.begin(); st_it != st_end; ++st_it)
-      rectlist.push_back( (*st_it)->frameRect() );
+      if (*st_it != this) // don't snap to ourself
+        rectlist.push_back( (*st_it)->frameRect() );
 
     // add the toolbar and the slit to the rect list.
     // (only if they are not hidden)
This page took 0.027021 seconds and 4 git commands to generate.