mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
Caret blink will no longer cause redraw without focus, issue 6167
(cherry picked from commit 7b036a94bf
)
This commit is contained in:
@@ -859,7 +859,7 @@ void LineEdit::_reset_caret_blink_timer() {
|
||||
|
||||
void LineEdit::_toggle_draw_caret() {
|
||||
draw_caret = !draw_caret;
|
||||
if (is_visible()) {
|
||||
if (is_visible() && has_focus() && window_has_focus) {
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
@@ -3350,7 +3350,7 @@ void TextEdit::_reset_caret_blink_timer() {
|
||||
|
||||
void TextEdit::_toggle_draw_caret() {
|
||||
draw_caret = !draw_caret;
|
||||
if (is_visible()) {
|
||||
if (is_visible() && has_focus() && window_has_focus) {
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user