summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-08-08 23:02:52 +0000
committerDana Jansens <danakj@orodu.net>2002-08-08 23:02:52 +0000
commit2d5e1c55f132a0a834eb28146fe60c8e2ca8e665 (patch)
tree5087f658898a7dedfa7df862fd99c086e79b04fd
parent652addd232e3f2a7c6c681b9669917e0a416331f (diff)
don't let windows snap to themself
-rw-r--r--src/Window.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 3935f829..fae990b6 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -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)