mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 21:15:06 +00:00
Taskbar: Start working on a taskbar app.
I originally thought I would do this inside WindowServer, but let's try to make it as a standalone app that communicates with WindowServer instead. That will allow us to use LibGUI. :^)
This commit is contained in:
parent
318db1e48e
commit
a22774ee3f
31 changed files with 577 additions and 18 deletions
|
@ -104,6 +104,8 @@ static inline Rect outer_window_rect(const WSWindow& window)
|
|||
return menu_window_rect(window.rect());
|
||||
if (window.type() == WSWindowType::WindowSwitcher)
|
||||
return window.rect();
|
||||
if (window.type() == WSWindowType::Taskbar)
|
||||
return window.rect();
|
||||
ASSERT(window.type() == WSWindowType::Normal);
|
||||
return outer_window_rect(window.rect());
|
||||
}
|
||||
|
@ -418,6 +420,9 @@ void WSWindowManager::paint_window_frame(const WSWindow& window)
|
|||
if (window.type() == WSWindowType::WindowSwitcher)
|
||||
return;
|
||||
|
||||
if (window.type() == WSWindowType::Taskbar)
|
||||
return;
|
||||
|
||||
auto titlebar_rect = title_bar_rect(window.rect());
|
||||
auto titlebar_icon_rect = title_bar_icon_rect(window.rect());
|
||||
auto titlebar_inner_rect = title_bar_text_rect(window.rect());
|
||||
|
@ -1179,6 +1184,10 @@ void WSWindowManager::invalidate(const WSWindow& window)
|
|||
invalidate(window.rect());
|
||||
return;
|
||||
}
|
||||
if (window.type() == WSWindowType::Taskbar) {
|
||||
invalidate(window.rect());
|
||||
return;
|
||||
}
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue