mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00:00
Add a simple close button ("X") to windows.
Clicking the button generates a WindowCloseRequest event which the client app then has to deal with. The default behavior for GWindow is to close() itself. I also added a flag, GWindow::should_exit_event_loop_on_close() which does what it sounds like it does. This patch exposed some bugs in GWindow and GWidget teardown.
This commit is contained in:
parent
d0078b6574
commit
11db8c1697
Notes:
sideshowbarker
2024-07-19 15:51:46 +09:00
Author: https://github.com/awesomekling
Commit: 11db8c1697
14 changed files with 103 additions and 1 deletions
|
@ -24,6 +24,7 @@ public:
|
|||
WindowBecameActive,
|
||||
FocusIn,
|
||||
FocusOut,
|
||||
WindowCloseRequest,
|
||||
};
|
||||
|
||||
GEvent() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue