diff options
author | marc_culler <marc.culler@gmail.com> | 2020-09-18 04:04:15 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2020-09-18 04:04:15 (GMT) |
commit | 48ef08146870342d47fdf371add8000fabd08894 (patch) | |
tree | c9183860783371a0e19f3f0c9c5c96c9cf535240 /macosx | |
parent | d1c71b68525acb6663821db6596299894c8f9874 (diff) | |
download | tk-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.c | 5 |
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]) { |