more resistance working. edge of screen works right now
This commit is contained in:
parent
d94e8c5068
commit
c2b3dc9f71
1 changed files with 9 additions and 5 deletions
|
@ -3224,13 +3224,17 @@ void BlackboxWindow::doMove(int x_root, int y_root) {
|
||||||
const Rect &srect = *it;
|
const Rect &srect = *it;
|
||||||
|
|
||||||
// if we're not in the rectangle then don't snap to it.
|
// if we're not in the rectangle then don't snap to it.
|
||||||
if (! srect.intersects(Rect(wleft, wtop, frame.rect.width(),
|
if (screen->doOpaqueMove()) {
|
||||||
frame.rect.height())))
|
if (! srect.contains(frame.rect))
|
||||||
continue;
|
continue;
|
||||||
|
} else {
|
||||||
|
if (! srect.contains(frame.changing))
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int dleft = wleft - srect.left(),
|
int dleft = srect.left() - wleft,
|
||||||
dright = wright - srect.right(),
|
dright = wright - srect.right(),
|
||||||
dtop = wtop - srect.top(),
|
dtop = srect.top() - wtop,
|
||||||
dbottom = wbottom - srect.bottom();
|
dbottom = wbottom - srect.bottom();
|
||||||
|
|
||||||
// snap left?
|
// snap left?
|
||||||
|
|
Loading…
Reference in a new issue