mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:37: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
|
@ -938,9 +938,9 @@ void Window::apply_icon()
|
|||
ConnectionToWindowServer::the().async_set_window_icon_bitmap(m_window_id, m_icon->to_shareable_bitmap());
|
||||
}
|
||||
|
||||
void Window::start_interactive_resize()
|
||||
void Window::start_interactive_resize(ResizeDirection resize_direction)
|
||||
{
|
||||
ConnectionToWindowServer::the().async_start_window_resize(m_window_id);
|
||||
ConnectionToWindowServer::the().async_start_window_resize(m_window_id, (i32)resize_direction);
|
||||
}
|
||||
|
||||
Vector<Widget&> Window::focusable_widgets(FocusSource source) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue