increase sleep before sending X11 resize

This commit is contained in:
Drew Weymouth
2024-06-23 11:14:59 -07:00
parent 2736fe9955
commit 880778e7c9
+1 -1
View File
@@ -59,7 +59,7 @@ func main() {
// hacky workaround for https://github.com/fyne-io/fyne/issues/4964 // hacky workaround for https://github.com/fyne-io/fyne/issues/4964
if runtime.GOOS == "linux" { if runtime.GOOS == "linux" {
time.Sleep(100 * time.Millisecond) time.Sleep(350 * time.Millisecond)
w, h := mainWindow.DesiredSize() w, h := mainWindow.DesiredSize()
scale := mainWindow.Window.Canvas().Scale() scale := mainWindow.Window.Canvas().Scale()
SendResizeToPID(os.Getpid(), int(w*scale), int(h*scale)) SendResizeToPID(os.Getpid(), int(w*scale), int(h*scale))