diff options
author | Mart G <martg_@hotmail.com> | 2022-10-11 17:03:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-11 17:48:48 +0200 |
commit | 8202beeb2b7167f26af1880d76a45f2ded578ae1 (patch) | |
tree | 00d310d921eedbe69349bda0fd1e23bc40794170 /Userland/Libraries/LibGUI/Window.h | |
parent | eb9db167da96796d0e3d5551d9fec7ce82f942ea (diff) | |
download | serenity-8202beeb2b7167f26af1880d76a45f2ded578ae1.zip |
WindowServer+LibGUI: Shrink window edge resize hot-spots
The hot-spots for resizing a window by dragging its corner are now
limited to a small area around the actual corner instead of an area with
1/3rd the length or width of the window.
The hot-spots to resize a window while holding a modifier key and the
right mouse button are unchanged.
Diffstat (limited to 'Userland/Libraries/LibGUI/Window.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Window.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h index fddab1f195..4a45d3d299 100644 --- a/Userland/Libraries/LibGUI/Window.h +++ b/Userland/Libraries/LibGUI/Window.h @@ -14,6 +14,7 @@ #include <LibCore/Object.h> #include <LibGUI/FocusSource.h> #include <LibGUI/Forward.h> +#include <LibGUI/ResizeDirection.h> #include <LibGUI/WindowMode.h> #include <LibGUI/WindowType.h> #include <LibGfx/Forward.h> @@ -131,7 +132,7 @@ public: virtual void close(); void move_to_front(); - void start_interactive_resize(); + void start_interactive_resize(ResizeDirection resize_direction); Widget* main_widget() { return m_main_widget; } Widget const* main_widget() const { return m_main_widget; } |