mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app/internal/window: drop zero-sized redraws in WebAssembly
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -339,7 +339,7 @@ func (w *window) ShowTextInput(show bool) {
|
||||
|
||||
func (w *window) draw(sync bool) {
|
||||
width, height, scale, cfg := w.config()
|
||||
if cfg == (config{}) {
|
||||
if cfg == (config{}) || width == 0 || height == 0 {
|
||||
return
|
||||
}
|
||||
w.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user