Codechange: Set specific widgets dirty instead of window.

This commit is contained in:
Peter Nelson
2021-05-06 01:36:56 +01:00
committed by PeterN
parent e2774354b4
commit 8321ef0061
4 changed files with 8 additions and 7 deletions

View File

@@ -2438,8 +2438,8 @@ static EventState HandleActiveWidget()
if (w->mouse_capture_widget >= 0) {
/* Abort if no button is clicked any more. */
if (!_left_button_down) {
w->SetWidgetDirty(w->mouse_capture_widget);
w->mouse_capture_widget = -1;
w->SetDirty();
return ES_HANDLED;
}