mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28: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
|
@ -61,6 +61,8 @@ Frame::~Frame()
|
|||
void Frame::setup()
|
||||
{
|
||||
m_cursor_blink_timer = Core::Timer::construct(500, [this] {
|
||||
if (!is_focused_frame())
|
||||
return;
|
||||
if (m_cursor_position.node() && m_cursor_position.node()->layout_node()) {
|
||||
m_cursor_blink_state = !m_cursor_blink_state;
|
||||
m_cursor_position.node()->layout_node()->set_needs_display();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue