mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +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
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