no need to try the same screen edge twice for snapping when full max is on

This commit is contained in:
Dana Jansens 2002-05-30 23:17:54 +00:00
parent 9ccebf1118
commit e149ab6c29

View file

@ -2582,6 +2582,7 @@ void BlackboxWindow::motionNotifyEvent(XMotionEvent *me) {
else if (dbottom < snap_distance) else if (dbottom < snap_distance)
dy = srect.bottom() - frame.rect.height() + 1; dy = srect.bottom() - frame.rect.height() + 1;
if (! screen->doFullMax()) {
srect = screen->getRect(); // now get the full screen srect = screen->getRect(); // now get the full screen
dleft = std::abs(wleft - srect.left()), dleft = std::abs(wleft - srect.left()),
@ -2603,6 +2604,7 @@ void BlackboxWindow::motionNotifyEvent(XMotionEvent *me) {
else if (dbottom < snap_distance) else if (dbottom < snap_distance)
dy = srect.bottom() - frame.rect.height() + 1; dy = srect.bottom() - frame.rect.height() + 1;
} }
}
if (screen->doOpaqueMove()) { if (screen->doOpaqueMove()) {
configure(dx, dy, frame.rect.width(), frame.rect.height()); configure(dx, dy, frame.rect.width(), frame.rect.height());