all repos — fluxbox @ 0c13ddc0c85ed4445ff8e289387c142e0ac98c77

custom fork of the fluxbox windowmanager

resolve handle/grip context conflict
Thomas Lübking thomas.luebking@gmail.com
commit

0c13ddc0c85ed4445ff8e289387c142e0ac98c77

parent

7ec5c581c1a3a01fa4578ee97ea8e4b1ea9747f2

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

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

@@ -1589,7 +1589,12 @@

if (window().window() == win) return context | Keys::ON_WINDOW; // /!\ old code: handle = titlebar in motionNotifyEvent but only there ! // handle() as border ?? - if (handle().window() == win) return Keys::ON_WINDOWBORDER | Keys::ON_WINDOW; + if (handle().window() == win) { + const int px = x - this->x() - window().borderWidth(); + if (px < gripLeft().x() + gripLeft().width() || px > gripRight().x()) + return context; // one of the corners + return Keys::ON_WINDOWBORDER | Keys::ON_WINDOW; + } if (titlebar().window() == win) { const int px = x - this->x() - window().borderWidth(); if (px < label().x() || px > label().x() + label().width())