no need to try the same screen edge twice for snapping when full max is on
This commit is contained in:
parent
9ccebf1118
commit
e149ab6c29
1 changed files with 19 additions and 17 deletions
|
@ -2582,6 +2582,7 @@ void BlackboxWindow::motionNotifyEvent(XMotionEvent *me) {
|
|||
else if (dbottom < snap_distance)
|
||||
dy = srect.bottom() - frame.rect.height() + 1;
|
||||
|
||||
if (! screen->doFullMax()) {
|
||||
srect = screen->getRect(); // now get the full screen
|
||||
|
||||
dleft = std::abs(wleft - srect.left()),
|
||||
|
@ -2603,6 +2604,7 @@ void BlackboxWindow::motionNotifyEvent(XMotionEvent *me) {
|
|||
else if (dbottom < snap_distance)
|
||||
dy = srect.bottom() - frame.rect.height() + 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (screen->doOpaqueMove()) {
|
||||
configure(dx, dy, frame.rect.width(), frame.rect.height());
|
||||
|
|
Loading…
Reference in a new issue