From 536d67566f54b00ea9757f3399b2bc54555e2962 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 2 Apr 2011 20:43:31 -0300 Subject: [PATCH] Add support to resize the pinned popup frames. --- src/widgets/popup_frame_pin.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/widgets/popup_frame_pin.cpp b/src/widgets/popup_frame_pin.cpp index 2947da146..b14548907 100644 --- a/src/widgets/popup_frame_pin.cpp +++ b/src/widgets/popup_frame_pin.cpp @@ -82,6 +82,13 @@ void PopupFramePin::onHitTest(HitTestEvent& ev) { PopupFrame::onHitTest(ev); - if (m_pin.isSelected() && ev.getHit() == HitTestClient) - ev.setHit(HitTestCaption); + if (m_pin.isSelected() && + ev.getHit() == HitTestClient) { + if (ev.getPoint().x <= rc->x1+2) + ev.setHit(HitTestBorderW); + else if (ev.getPoint().x >= rc->x2-3) + ev.setHit(HitTestBorderE); + else + ev.setHit(HitTestCaption); + } }