WindowServer: Change rendering drag&drop to use the Overlay class

This enables flicker-free rendering.
This commit is contained in:
Tom 2021-06-25 12:08:23 -06:00 committed by Andreas Kling
commit 8cfb4c82f0
Notes: sideshowbarker 2024-07-18 11:30:55 +09:00
7 changed files with 99 additions and 98 deletions

View file

@ -58,6 +58,10 @@ ClientConnection::ClientConnection(NonnullRefPtr<Core::LocalSocket> client_socke
ClientConnection::~ClientConnection()
{
auto& wm = WindowManager::the();
if (wm.dnd_client() == this)
wm.end_dnd_drag();
if (m_has_display_link)
Compositor::the().decrement_display_link_count({});