diff options
Diffstat (limited to 'src/macselect.c')
| -rw-r--r-- | src/macselect.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/macselect.c b/src/macselect.c index 8d15db24144..8e86c7651e2 100644 --- a/src/macselect.c +++ b/src/macselect.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Selection processing for Emacs on Mac OS. | 1 | /* Selection processing for Emacs on Mac OS. |
| 2 | Copyright (C) 2005, 2006 Free Software Foundation, Inc. | 2 | Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -1390,7 +1390,7 @@ nil, which means the event is already resumed or expired. */) | |||
| 1390 | ae = *p; | 1390 | ae = *p; |
| 1391 | *p = (*p)->next; | 1391 | *p = (*p)->next; |
| 1392 | if (INTEGERP (error_code) | 1392 | if (INTEGERP (error_code) |
| 1393 | && ae->apple_event.descriptorType != typeNull) | 1393 | && ae->reply.descriptorType != typeNull) |
| 1394 | { | 1394 | { |
| 1395 | SInt32 errn = XINT (error_code); | 1395 | SInt32 errn = XINT (error_code); |
| 1396 | 1396 | ||
| @@ -1562,10 +1562,17 @@ mac_do_receive_drag (window, refcon, drag) | |||
| 1562 | GlobalToLocal (&mouse_pos); | 1562 | GlobalToLocal (&mouse_pos); |
| 1563 | err = GetDragModifiers (drag, NULL, NULL, &modifiers); | 1563 | err = GetDragModifiers (drag, NULL, NULL, &modifiers); |
| 1564 | } | 1564 | } |
| 1565 | if (err == noErr) | ||
| 1566 | { | ||
| 1567 | UInt32 key_modifiers = modifiers; | ||
| 1568 | |||
| 1569 | err = AEPutParamPtr (&apple_event, kEventParamKeyModifiers, | ||
| 1570 | typeUInt32, &key_modifiers, sizeof (UInt32)); | ||
| 1571 | } | ||
| 1565 | 1572 | ||
| 1566 | if (err == noErr) | 1573 | if (err == noErr) |
| 1567 | { | 1574 | { |
| 1568 | mac_store_drag_event (window, mouse_pos, modifiers, &apple_event); | 1575 | mac_store_drag_event (window, mouse_pos, 0, &apple_event); |
| 1569 | AEDisposeDesc (&apple_event); | 1576 | AEDisposeDesc (&apple_event); |
| 1570 | mac_wakeup_from_rne (); | 1577 | mac_wakeup_from_rne (); |
| 1571 | return noErr; | 1578 | return noErr; |