5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-11 22:49:29 +08:00

Merge pull request #893 from Wakeful-Cloud/master

Fixed WindowGetSize
This commit is contained in:
Lea Anthony 2021-10-25 19:20:47 +11:00 committed by GitHub
commit f66c70f0be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ func (d *Dispatcher) processSystemCall(payload callMessage, sender frontend.Fron
return &position{x, y}, nil return &position{x, y}, nil
case "WindowGetSize": case "WindowGetSize":
w, h := sender.WindowGetSize() w, h := sender.WindowGetSize()
return &position{w, h}, nil return &size{w, h}, nil
default: default:
return nil, fmt.Errorf("unknown systemcall message: %s", payload.Name) return nil, fmt.Errorf("unknown systemcall message: %s", payload.Name)
} }