mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:57:35 +00:00
WindowServer: Replace window menu action magic numbers with enum
This makes it a lot easier to find where the action handling is happening, just 1, 2, 3, 4 isn't very discoverable. :^)
This commit is contained in:
parent
5b95850e28
commit
0aebb9ec62
2 changed files with 16 additions and 9 deletions
|
@ -71,6 +71,13 @@ enum class PopupMenuItem {
|
|||
Maximize,
|
||||
};
|
||||
|
||||
enum class WindowMenuAction {
|
||||
MinimizeOrUnminimize = 0,
|
||||
MaximizeOrRestore,
|
||||
ToggleMenubarVisibility,
|
||||
Close,
|
||||
};
|
||||
|
||||
enum class WindowMenuDefaultAction {
|
||||
None = 0,
|
||||
BasedOnWindowState,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue