mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
ui/app: remove redundant redraw check
Now that the input router triggers a redraw when a focus event is added, it is no longer necessary to check for that condition in Window. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -107,10 +107,6 @@ func (w *Window) setTextInput(s key.TextInputState) {
|
|||||||
if s != w.inputState && (s == key.TextInputClose || s == key.TextInputOpen) {
|
if s != w.inputState && (s == key.TextInputClose || s == key.TextInputOpen) {
|
||||||
w.driver.setTextInput(s)
|
w.driver.setTextInput(s)
|
||||||
}
|
}
|
||||||
if s == key.TextInputFocus {
|
|
||||||
w.setNextFrame(time.Time{})
|
|
||||||
w.updateAnimation()
|
|
||||||
}
|
|
||||||
w.inputState = s
|
w.inputState = s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user