summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-09-18 04:04:15 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-09-18 04:04:15 (GMT)
commit48ef08146870342d47fdf371add8000fabd08894 (patch)
treec9183860783371a0e19f3f0c9c5c96c9cf535240 /macosx
parentd1c71b68525acb6663821db6596299894c8f9874 (diff)
downloadtk-48ef08146870342d47fdf371add8000fabd08894.zip
tk-48ef08146870342d47fdf371add8000fabd08894.tar.gz
tk-48ef08146870342d47fdf371add8000fabd08894.tar.bz2
Fix [4f4f03f5eb]: in Aqua allow mouse drags across the titlebar while ignoring button presses in the title bar.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXMouseEvent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMouseEvent.c b/macosx/tkMacOSXMouseEvent.c
index 804531b..bf70c60 100644
--- a/macosx/tkMacOSXMouseEvent.c
+++ b/macosx/tkMacOSXMouseEvent.c
@@ -132,7 +132,10 @@ enum {
* [39cbacb9e8].
*/
- if (eventType == NSLeftMouseDown || eventType == NSLeftMouseDragged) {
+ if (eventType == NSLeftMouseDragged) {
+ buttonState &= ~TkGetButtonMask(Button1);
+ }
+ if (eventType == NSLeftMouseDown) {
if ([eventWindow respondsToSelector:@selector(mouseInResizeArea)] &&
[(TKWindow *) eventWindow mouseInResizeArea]) {