mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +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
|
@ -162,6 +162,8 @@ public:
|
|||
|
||||
void start_window_resize(Window&, const Gfx::IntPoint&, MouseButton);
|
||||
void start_window_resize(Window&, const MouseEvent&);
|
||||
void start_window_move(Window&, const MouseEvent&);
|
||||
void start_window_move(Window&, const Gfx::IntPoint&);
|
||||
|
||||
const Window* active_fullscreen_window() const
|
||||
{
|
||||
|
@ -237,7 +239,7 @@ private:
|
|||
bool process_ongoing_window_resize(const MouseEvent&, Window*& hovered_window);
|
||||
bool process_ongoing_window_move(MouseEvent&, Window*& hovered_window);
|
||||
bool process_ongoing_drag(MouseEvent&, Window*& hovered_window);
|
||||
void start_window_move(Window&, const MouseEvent&);
|
||||
|
||||
template<typename Callback>
|
||||
IterationDecision for_each_visible_window_of_type_from_back_to_front(WindowType, Callback, bool ignore_highlight = false);
|
||||
template<typename Callback>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue