mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +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:
parent
0eb7c24e7d
commit
90ab011127
1 changed files with 1 additions and 1 deletions
|
@ -855,9 +855,9 @@ void Window::set_fullscreen(bool fullscreen)
|
||||||
new_window_rect = m_saved_nonfullscreen_rect;
|
new_window_rect = m_saved_nonfullscreen_rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_rect(new_window_rect);
|
||||||
send_resize_event_to_client();
|
send_resize_event_to_client();
|
||||||
send_move_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
|
WindowTileType Window::tile_type_based_on_rect(Gfx::IntRect const& rect) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue