internal/ui: bug fix: setWindowMonitor was processed even when the same monitor was specified

Updates #1835
This commit is contained in:
Hajime Hoshi 2023-09-15 03:29:54 +09:00
parent b710ff17c8
commit 32bd565df9

View File

@ -357,7 +357,7 @@ func (u *userInterfaceImpl) setWindowMonitor(monitor int) {
m := monitors[monitor].m
// Ignore if it is the same monitor.
if m == u.window.GetMonitor() {
if m == u.currentMonitor() {
return
}