1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:07:46 +00:00

WindowServer: Fix window content scaling when switching from fullscreen

Resolves #18624

Switching to and from fullscreen produces a behaviour where window
content too big in relation to window size.

This patch fixes sent resize event to contain current
window size.
This commit is contained in:
Patryk Pilipczuk 2023-05-04 00:37:14 +02:00 committed by Sam Atkins
parent 0eb7c24e7d
commit 90ab011127

View file

@ -855,9 +855,9 @@ void Window::set_fullscreen(bool fullscreen)
new_window_rect = m_saved_nonfullscreen_rect;
}
set_rect(new_window_rect);
send_resize_event_to_client();
send_move_event_to_client();
set_rect(new_window_rect);
}
WindowTileType Window::tile_type_based_on_rect(Gfx::IntRect const& rect) const