mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
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.
This commit is contained in:
parent
eb9db167da
commit
8202beeb2b
15 changed files with 107 additions and 62 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <WindowServer/Event.h>
|
||||
#include <WindowServer/KeymapSwitcher.h>
|
||||
#include <WindowServer/MenuManager.h>
|
||||
#include <WindowServer/ResizeDirection.h>
|
||||
#include <WindowServer/ScreenLayout.h>
|
||||
#include <WindowServer/SystemEffects.h>
|
||||
#include <WindowServer/WMConnectionFromClient.h>
|
||||
|
@ -41,18 +42,6 @@ class Button;
|
|||
class DndOverlay;
|
||||
class WindowGeometryOverlay;
|
||||
|
||||
enum class ResizeDirection {
|
||||
None,
|
||||
Left,
|
||||
UpLeft,
|
||||
Up,
|
||||
UpRight,
|
||||
Right,
|
||||
DownRight,
|
||||
Down,
|
||||
DownLeft
|
||||
};
|
||||
|
||||
class WindowManager : public Core::Object {
|
||||
C_OBJECT(WindowManager)
|
||||
|
||||
|
@ -202,8 +191,8 @@ public:
|
|||
|
||||
void check_hide_geometry_overlay(Window&);
|
||||
|
||||
void start_window_resize(Window&, Gfx::IntPoint const&, MouseButton);
|
||||
void start_window_resize(Window&, MouseEvent const&);
|
||||
void start_window_resize(Window&, Gfx::IntPoint const&, MouseButton, ResizeDirection);
|
||||
void start_window_resize(Window&, MouseEvent const&, ResizeDirection);
|
||||
void start_window_move(Window&, MouseEvent const&);
|
||||
void start_window_move(Window&, Gfx::IntPoint const&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue