mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:57:44 +00:00
WindowServer: Properly determine where a window may be
This also fixes weird behavior of WindowManager::desktop_rect(). None of the callers seem to ever expect an empty Rect, so return a non-empty Rect.
This commit is contained in:
parent
af605afb27
commit
3fd5aec187
3 changed files with 22 additions and 2 deletions
|
@ -183,7 +183,7 @@ void Window::normalize_rect()
|
|||
// For example, the windows that make the desktop rect smaller
|
||||
// than the display resolution (e.g. the TaskBar).
|
||||
auto min_visible = -1;
|
||||
auto desktop = WindowManager::the().desktop_rect();
|
||||
auto desktop = WindowManager::the().arena_rect_for_type(type())
|
||||
auto min_y = 0;
|
||||
if (type() == WindowType::Normal) {
|
||||
min_size = 50;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue