mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
WindowServer: Move window geometry label into the tile overlay area
This moves the window geometry overlay into the center of the tile window overlay when it's visible or when it moves.
This commit is contained in:
parent
fe54a0ca27
commit
5a73691fe9
Notes:
sideshowbarker
2024-07-17 02:28:18 +09:00
Author: https://github.com/tomuta
Commit: 5a73691fe9
Pull-request: https://github.com/SerenityOS/serenity/pull/18175
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/nico ✅
Reviewed-by: https://github.com/trflynn89
4 changed files with 97 additions and 4 deletions
|
@ -757,7 +757,11 @@ void WindowManager::start_tile_window_animation(Gfx::IntRect const& starting_rec
|
|||
|
||||
void WindowManager::stop_tile_window_animation()
|
||||
{
|
||||
m_tile_window_overlay = nullptr;
|
||||
if (m_tile_window_overlay) {
|
||||
if (m_geometry_overlay)
|
||||
m_geometry_overlay->start_or_stop_move_to_tile_overlay_animation(nullptr);
|
||||
m_tile_window_overlay = nullptr;
|
||||
}
|
||||
m_tile_window_overlay_animation = nullptr;
|
||||
}
|
||||
|
||||
|
@ -776,9 +780,17 @@ void WindowManager::show_tile_window_overlay(Window& window, Screen const& curso
|
|||
if (m_tile_window_overlay->tiled_frame_rect() != tiled_frame_rect) {
|
||||
m_tile_window_overlay->set_tiled_frame_rect(tiled_frame_rect);
|
||||
start_tile_window_animation(m_tile_window_overlay->rect());
|
||||
if (m_geometry_overlay)
|
||||
m_geometry_overlay->window_rect_changed();
|
||||
}
|
||||
}
|
||||
}
|
||||
TileWindowOverlay* WindowManager::get_tile_window_overlay(Window& window) const
|
||||
{
|
||||
if (m_tile_window_overlay && m_tile_window_overlay->is_window(window))
|
||||
return m_tile_window_overlay.ptr();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool WindowManager::process_ongoing_window_move(MouseEvent& event)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue