Skip to content

Commit

Permalink
increase sleep before sending X11 resize
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jun 23, 2024
1 parent 2736fe9 commit 880778e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func main() {

// hacky workaround for https://github.com/fyne-io/fyne/issues/4964
if runtime.GOOS == "linux" {
time.Sleep(100 * time.Millisecond)
time.Sleep(350 * time.Millisecond)
w, h := mainWindow.DesiredSize()
scale := mainWindow.Window.Canvas().Scale()
SendResizeToPID(os.Getpid(), int(w*scale), int(h*scale))
Expand Down

0 comments on commit 880778e

Please sign in to comment.