Invalidate the window when starting to drag it.

This ensures that the drag color shows up immediately.
This commit is contained in:
Andreas Kling 2019-01-19 14:29:59 +01:00
parent 4bffdd2394
commit 102a5add16
Notes: sideshowbarker 2024-07-19 16:00:17 +09:00

View file

@ -235,6 +235,7 @@ void WSWindowManager::handle_titlebar_mouse_event(WSWindow& window, MouseEvent&
m_drag_window_origin = window.position();
m_drag_start_rect = outerRectForWindow(window.rect());
window.set_is_being_dragged(true);
invalidate(window);
return;
}
}