mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibWeb: Don't paint a text cursor in unfocused frames
This commit is contained in:
parent
be76abfdb3
commit
9bdd8ec3f3
2 changed files with 5 additions and 0 deletions
|
@ -108,6 +108,9 @@ void LayoutText::paint_fragment(PaintContext& context, const LineBoxFragment& fr
|
|||
|
||||
void LayoutText::paint_cursor_if_needed(PaintContext& context, const LineBoxFragment& fragment) const
|
||||
{
|
||||
if (!frame().is_focused_frame())
|
||||
return;
|
||||
|
||||
if (!frame().cursor_blink_state())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue