# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1169454495 0 # Node ID 7b70538ea11c35425ba3770e1ef1509e2e9e502f # Parent 2d3bcf670390c528433c7e914b183af51a136f18 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Don't pass keyboard modifiers to mac_store_drag_event, but put them as kEventParamKeyModifiers Apple event parameter. diff -r 2d3bcf670390 -r 7b70538ea11c src/macselect.c --- a/src/macselect.c Mon Jan 22 08:27:23 2007 +0000 +++ b/src/macselect.c Mon Jan 22 08:28:15 2007 +0000 @@ -1562,10 +1562,17 @@ GlobalToLocal (&mouse_pos); err = GetDragModifiers (drag, NULL, NULL, &modifiers); } + if (err == noErr) + { + UInt32 key_modifiers = modifiers; + + err = AEPutParamPtr (&apple_event, kEventParamKeyModifiers, + typeUInt32, &key_modifiers, sizeof (UInt32)); + } if (err == noErr) { - mac_store_drag_event (window, mouse_pos, modifiers, &apple_event); + mac_store_drag_event (window, mouse_pos, 0, &apple_event); AEDisposeDesc (&apple_event); mac_wakeup_from_rne (); return noErr;