mirror of
https://github.com/RGBCube/serenity
synced 2025-06-03 21:48:14 +00:00
GWindow: Make destroy-on-close an optional behavior.
Also add missing implementation of GWindow::is_visible().
This commit is contained in:
parent
ae8eff55a7
commit
e9cbda29e9
2 changed files with 7 additions and 2 deletions
|
@ -47,7 +47,8 @@ void GWindow::close()
|
|||
{
|
||||
if (should_exit_event_loop_on_close())
|
||||
GEventLoop::current().quit(0);
|
||||
delete_later();
|
||||
if (should_destroy_on_close())
|
||||
delete_later();
|
||||
}
|
||||
|
||||
void GWindow::move_to_front()
|
||||
|
@ -421,7 +422,7 @@ void GWindow::collect_keyboard_activation_targets()
|
|||
|
||||
bool GWindow::is_visible() const
|
||||
{
|
||||
return false;
|
||||
return m_window_id != 0;
|
||||
}
|
||||
|
||||
void GWindow::update(const Rect& a_rect)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue