all repos — openbox @ 46b2484eda7d205ea14972dabfa9e1b63e5fd520

openbox fork - make it a bit more like ryudo

let a window snap to more than one window at a time
Dana Jansens danakj@orodu.net
commit

46b2484eda7d205ea14972dabfa9e1b63e5fd520

parent

734a96739d92c772fa48e2fb09e3fda0e3a8c606

1 files changed, 4 insertions(+), 4 deletions(-)

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

@@ -2552,23 +2552,23 @@

// snap left? if (dleft < snap_distance && dleft <= dright) { dx = winrect.left() - frame.rect.width(); - break; + continue; } // snap right? else if (dright < snap_distance) { dx = winrect.right() + 1; - break; + continue; } // snap top? if (dtop < snap_distance && dtop <= dbottom) { dy = winrect.top() - frame.rect.height(); - break; + continue; } // snap bottom? else if (dbottom < snap_distance) { dy = winrect.bottom() + 1; - break; + continue; } }