Commit 79c85bad authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Dont start drag if the cursor is slightly above the tabbar

parent 4ab70d77
Pipeline #259244 failed with stage
in 10 minutes and 4 seconds
......@@ -200,6 +200,7 @@ void KateTabBar::mouseMoveEvent(QMouseEvent *event)
auto viewSpace = qobject_cast<KateViewSpace *>(parentWidget());
const auto viewspaceRect = viewSpace->rect();
QRect viewspaceRectTopArea = viewspaceRect;
viewspaceRectTopArea.setTop(viewspaceRect.top() - 40);
viewspaceRectTopArea.setBottom(viewspaceRect.height() / 2);
if (!viewSpace || viewspaceRectTopArea.contains(event->pos())) {
QTabBar::mouseMoveEvent(event);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment