mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
WindowServer+LibGUI: Remove the global menubar :^)
This leaves menu applets running but invisible, and that's a regression we need to take care of obviously. But not today, because it's getting too late.
This commit is contained in:
parent
1108c41790
commit
e9db10e3a9
6 changed files with 6 additions and 22 deletions
|
@ -244,12 +244,11 @@ void ComboBox::open()
|
|||
};
|
||||
|
||||
auto taskbar_height = GUI::Desktop::the().taskbar_height();
|
||||
auto menubar_height = GUI::Desktop::the().menubar_height();
|
||||
// NOTE: This is so the combobox bottom edge exactly fits the taskbar's
|
||||
// top edge - the value was found through trial and error though.
|
||||
auto offset = 8;
|
||||
Gfx::IntRect list_window_rect { my_screen_rect.bottom_left(), size };
|
||||
list_window_rect.intersect(Desktop::the().rect().shrunken(0, taskbar_height + menubar_height + offset));
|
||||
list_window_rect.intersect(Desktop::the().rect().shrunken(0, taskbar_height + offset));
|
||||
|
||||
m_editor->set_focus(true);
|
||||
if (m_selected_index.has_value()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue