mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
WindowServer: Change rendering drag&drop to use the Overlay class
This enables flicker-free rendering.
This commit is contained in:
parent
84cab29c59
commit
8cfb4c82f0
Notes:
sideshowbarker
2024-07-18 11:30:55 +09:00
Author: https://github.com/tomuta
Commit: 8cfb4c82f0
Pull-request: https://github.com/SerenityOS/serenity/pull/8174
Reviewed-by: https://github.com/MaxWipfli
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gunnarbeutner
7 changed files with 99 additions and 98 deletions
|
@ -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({});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue