Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions system/driver/desktop/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,10 @@ func (w *Window) ConstrainFrame(topOnly bool) styles.Sides[int] {
sz.Y = csz.Y
}
if change {
// fmt.Println("\tconstrainframe changed:", pos, sz)
w.SetGeometry(false, pos, sz, sc)
// if the scaling factor or device pixel ratio is great than 1
// on Windows platform (effectively >= 1.5)
// then here we have deadlock.
go w.SetGeometry(false, pos, sz, sc)
}
return w.FrameSize
}
Expand Down