mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user