diff options
author | der richter <der.richter@gmx.de> | 2020-06-06 14:33:22 +0200 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2020-06-06 14:33:22 +0200 |
commit | 12415db3a60ce8a044ccc7ef510c85a1a95218e2 (patch) | |
tree | c7c45be9677377af83596c87709205c070411aa4 | |
parent | 5ad73ccbe9e9a736e7545e99879bf7acf9cb01f9 (diff) | |
download | mpv-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.swift | 2 |
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) { |