resolve handle/grip context conflict
Thomas Lübking thomas.luebking@gmail.com
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
src/FbWinFrame.cc
→
src/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())