mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:45:07 +00:00
WindowServer: Add a WSWindowType enum.
So far there's only Normal and Menu. Maybe we'll need more later.
This commit is contained in:
parent
111589a558
commit
c61f9eba61
5 changed files with 15 additions and 3 deletions
|
@ -259,7 +259,7 @@ void WSWindowManager::paint_window_frame(WSWindow& window)
|
|||
LOCKER(m_lock);
|
||||
//printf("[WM] paint_window_frame {%p}, rect: %d,%d %dx%d\n", &window, window.rect().x(), window.rect().y(), window.rect().width(), window.rect().height());
|
||||
|
||||
if (window.is_menu()) {
|
||||
if (window.type() == WSWindowType::Menu) {
|
||||
m_back_painter->draw_rect(window.rect().inflated(2, 2), Color::LightGray);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue