mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 00:58:12 +00:00
LibWeb: Only paint focus outline when browser window has focus
This is communicated through the PaintContext::has_focus() flag.
This commit is contained in:
parent
c1e0047b48
commit
2614ef550c
3 changed files with 8 additions and 2 deletions
|
@ -273,6 +273,7 @@ void PageView::paint_event(GUI::PaintEvent& event)
|
|||
PaintContext context(painter, palette(), { horizontal_scrollbar().value(), vertical_scrollbar().value() });
|
||||
context.set_should_show_line_box_borders(m_should_show_line_box_borders);
|
||||
context.set_viewport_rect(viewport_rect_in_content_coordinates());
|
||||
context.set_has_focus(is_focused());
|
||||
layout_root()->paint_all_phases(context);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue