mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
WindowServer: Add "Move" action to window menus
This can be used to initiate a window move. It's only enabled while the window is normal (not minimized, maximized or fullscreen.)
This commit is contained in:
parent
2bc3cc4cab
commit
634e652b6c
4 changed files with 21 additions and 3 deletions
|
@ -51,6 +51,7 @@ enum class WindowMenuAction {
|
|||
MaximizeOrRestore,
|
||||
ToggleMenubarVisibility,
|
||||
Close,
|
||||
Move,
|
||||
};
|
||||
|
||||
enum class WindowMenuDefaultAction {
|
||||
|
@ -392,6 +393,7 @@ private:
|
|||
RefPtr<Menu> m_window_menu;
|
||||
MenuItem* m_window_menu_minimize_item { nullptr };
|
||||
MenuItem* m_window_menu_maximize_item { nullptr };
|
||||
MenuItem* m_window_menu_move_item { nullptr };
|
||||
MenuItem* m_window_menu_close_item { nullptr };
|
||||
MenuItem* m_window_menu_menubar_visibility_item { nullptr };
|
||||
int m_minimize_animation_step { -1 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue