Skip to content

Commit

Permalink
Disallow using disabled edges to resize with resizable_widget
Browse files Browse the repository at this point in the history
Oops…

See #1265.
  • Loading branch information
lmoureaux committed Aug 14, 2022
1 parent a055900 commit becec8b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions client/widgetdecorations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,7 @@ void resizable_widget::mousePressEvent(QMouseEvent *event)
}
if (event->button() == Qt::LeftButton) {
// Get flag from mouse position
auto flags = get_in_event_mouse(event);

// Check the flag and widget for the presence of a flag
if (resizeFlags | flags) {
// Save flag and mouse position for mouse move event
eventFlags = flags;
}
eventFlags = get_in_event_mouse(event) & resizeFlags;
}
event->setAccepted(true);
}
Expand Down

0 comments on commit becec8b

Please sign in to comment.