mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
WindowServer: Factor out ongoing drag/resize from process_mouse_event().
The mouse event processing code is getting unwieldy. Break out two huge chunks into separate functions so the code becomes easier to work with.
This commit is contained in:
parent
900a3966e2
commit
56ee8bfe2a
2 changed files with 134 additions and 118 deletions
|
@ -86,6 +86,8 @@ public:
|
|||
|
||||
private:
|
||||
void process_mouse_event(WSMouseEvent&, WSWindow*& event_window);
|
||||
bool process_ongoing_window_resize(WSMouseEvent&, WSWindow*& event_window);
|
||||
bool process_ongoing_window_drag(WSMouseEvent&, WSWindow*& event_window);
|
||||
void handle_menu_mouse_event(WSMenu&, WSMouseEvent&);
|
||||
void handle_menubar_mouse_event(WSMouseEvent&);
|
||||
void handle_close_button_mouse_event(WSWindow&, WSMouseEvent&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue