mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibGfx+LibGUI+WindowServer+Apps+Demos: Replace ToolWindows
with the RenderAbove WindowMode. This mode will ensure child windows always draw above their parents, even when focus is lost. RenderAbove modals are automatically themed the same as the old ToolWindows. Fixes ToolWindows rendering above ALL normal windows, regardless of parent. We can't rely on WindowType to create these sort of effects because of WindowManager's strict display hierarchy.
This commit is contained in:
parent
589572cfa4
commit
0d4fd4e2a6
15 changed files with 106 additions and 144 deletions
|
@ -474,7 +474,7 @@ static Gfx::IntSize calculate_minimum_size_for_window(Window const& window)
|
|||
|
||||
// NOTE: Windows with a title bar have a minimum size enforced by the system,
|
||||
// because we want to always keep their title buttons accessible.
|
||||
if (window.type() == WindowType::Normal || window.type() == WindowType::ToolWindow) {
|
||||
if (window.type() == WindowType::Normal) {
|
||||
auto palette = WindowManager::the().palette();
|
||||
|
||||
int required_width = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue