1
Fork 0
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:
Linus Groh 2021-04-15 23:04:15 +02:00 committed by Andreas Kling
parent 5b95850e28
commit 0aebb9ec62
2 changed files with 16 additions and 9 deletions

View file

@ -71,6 +71,13 @@ enum class PopupMenuItem {
Maximize,
};
enum class WindowMenuAction {
MinimizeOrUnminimize = 0,
MaximizeOrRestore,
ToggleMenubarVisibility,
Close,
};
enum class WindowMenuDefaultAction {
None = 0,
BasedOnWindowState,