all repos — openbox @ c2b3dc9f7129d99e4fca9491ef0bd92be4e8af62

openbox fork - make it a bit more like ryudo

more resistance working. edge of screen works right now
Dana Jansens danakj@orodu.net
commit

c2b3dc9f7129d99e4fca9491ef0bd92be4e8af62

parent

d94e8c506850bc8a74ebc7b2c63e8ad242242faa

1 files changed, 9 insertions(+), 5 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -3224,13 +3224,17 @@ for (it = rectlist.begin(); it != end; ++it) {

const Rect &srect = *it; // if we're not in the rectangle then don't snap to it. - if (! srect.intersects(Rect(wleft, wtop, frame.rect.width(), - frame.rect.height()))) - continue; + if (screen->doOpaqueMove()) { + if (! srect.contains(frame.rect)) + continue; + } else { + if (! srect.contains(frame.changing)) + continue; + } - int dleft = wleft - srect.left(), + int dleft = srect.left() - wleft, dright = wright - srect.right(), - dtop = wtop - srect.top(), + dtop = srect.top() - wtop, dbottom = wbottom - srect.bottom(); // snap left?