mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
WindowServer: Various window pop-up menu fixes & QoL tweaks
This commit is contained in:
parent
eab34a7de3
commit
74ae6ac94b
5 changed files with 74 additions and 9 deletions
|
@ -27,6 +27,11 @@ enum class WindowTileType {
|
|||
Right,
|
||||
};
|
||||
|
||||
enum class PopupMenuItem {
|
||||
Minimize = 0,
|
||||
Maximize,
|
||||
};
|
||||
|
||||
class WSWindow final : public CObject
|
||||
, public InlineLinkedListNode<WSWindow> {
|
||||
C_OBJECT(WSWindow)
|
||||
|
@ -190,6 +195,8 @@ public:
|
|||
|
||||
private:
|
||||
void handle_mouse_event(const WSMouseEvent&);
|
||||
void update_menu_item_text(PopupMenuItem item);
|
||||
void update_menu_item_enabled(PopupMenuItem item);
|
||||
|
||||
WSClientConnection* m_client { nullptr };
|
||||
String m_title;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue