summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2020-06-06 14:33:22 +0200
committerder richter <der.richter@gmx.de>2020-06-06 14:33:22 +0200
commit12415db3a60ce8a044ccc7ef510c85a1a95218e2 (patch)
treec7c45be9677377af83596c87709205c070411aa4
parent5ad73ccbe9e9a736e7545e99879bf7acf9cb01f9 (diff)
downloadmpv-12415db3a60ce8a044ccc7ef510c85a1a95218e2.tar.bz2
mpv-12415db3a60ce8a044ccc7ef510c85a1a95218e2.tar.xz
cocoa-cb: properly reset window isMoving state on title bar clicks
since the title bar catches the mouse up and down events, the underlying events view doesn't reset the isMoving state and no mouse movements are signalled to the core. now we also reset the state in mouse up events on the title bar. Fixes #7807
-rw-r--r--video/out/cocoa-cb/title_bar.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/cocoa-cb/title_bar.swift b/video/out/cocoa-cb/title_bar.swift
index 98367e5d1c..c1c8b09526 100644
--- a/video/out/cocoa-cb/title_bar.swift
+++ b/video/out/cocoa-cb/title_bar.swift
@@ -96,6 +96,8 @@ class TitleBar: NSVisualEffectView {
window?.zoom(self)
}
}
+
+ cocoaCB.window?.isMoving = false
}
func set(appearance: Any) {