mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 21:15:14 +00:00
LibGUI: Destroy tooltip windows when they are not used.
Cached tooltip windows were preventing the automatic event loop shutdown. It's not like we were gaining much by caching these anyway, since we only cached the GWindow, not anything on the WindowServer side.
This commit is contained in:
parent
72a3f69df7
commit
356babaf96
Notes:
sideshowbarker
2024-07-19 13:05:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/356babaf96d
1 changed files with 4 additions and 1 deletions
|
@ -108,8 +108,11 @@ void GApplication::show_tooltip(const StringView& tooltip, const Point& screen_l
|
|||
|
||||
void GApplication::hide_tooltip()
|
||||
{
|
||||
if (m_tooltip_window)
|
||||
if (m_tooltip_window) {
|
||||
m_tooltip_window->hide();
|
||||
delete m_tooltip_window;
|
||||
m_tooltip_window = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void GApplication::did_delete_last_window(Badge<GWindow>)
|
||||
|
|
Loading…
Add table
Reference in a new issue