mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user