increase sleep before sending X11 resize
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user