all repos — fluxbox @ ebad1ce12f001e6be52825d48d6068af352068a1

custom fork of the fluxbox windowmanager

fixes a little bug with snapping to windows which have a border only.
such windows dont have DECORM_ENABLED and hence no borderwidth was 
added to the calculation. thats fixed now
mathias mathias
commit

ebad1ce12f001e6be52825d48d6068af352068a1

parent

6c1288b6f5f5c6d41e947053ba09ab617d206934

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

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

@@ -3328,11 +3328,12 @@

// we only care about the left/top etc that includes borders int borderW = 0; - if (decorationMask() & DECORM_ENABLED) + if (decorationMask() & (DECORM_ENABLED|DECORM_BORDER|DECORM_HANDLE)) borderW = frame().window().borderWidth(); int top = orig_top; // orig include the borders int left = orig_left; + int right = orig_left + width() + 2 * borderW; int bottom = orig_top + height() + 2 * borderW;

@@ -3386,7 +3387,8 @@ for (; it != it_end; it++) {

if ((*it) == this) continue; // skip myself - bw = (*it)->decorationMask() & DECORM_ENABLED ? (*it)->frame().window().borderWidth() : 0; + bw = (*it)->decorationMask() & (DECORM_ENABLED|DECORM_BORDER|DECORM_HANDLE) ? + (*it)->frame().window().borderWidth() : 0; snapToWindow(dx, dy, left, right, top, bottom, (*it)->x(),