mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
WindowServer: Recalculate window rect when toggling menubar
This is important when the window is maximized or tiled (which recalculate_rect() will both check), as we otherwise create a gap above the window frame (when hiding the menubar) or push the frame off the screen (when showing the menubar).
This commit is contained in:
parent
0aebb9ec62
commit
e632186c17
Notes:
sideshowbarker
2024-07-18 20:17:24 +09:00
Author: https://github.com/linusg
Commit: e632186c17
Pull-request: https://github.com/SerenityOS/serenity/pull/6358
1 changed files with 1 additions and 0 deletions
|
@ -700,6 +700,7 @@ void Window::ensure_window_menu()
|
|||
item.set_checked(!item.is_checked());
|
||||
m_should_show_menubar = item.is_checked();
|
||||
frame().invalidate();
|
||||
recalculate_rect();
|
||||
Compositor::the().invalidate_occlusions();
|
||||
Compositor::the().invalidate_screen();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue