Changeset 55640 in vbox for trunk/src/VBox/HostServices/DragAndDrop/service.cpp
- Timestamp:
- May 4, 2015 12:38:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/DragAndDrop/service.cpp
r55549 r55640 712 712 if (m_clientMap.size()) /* At least one client on the guest connected? */ 713 713 { 714 /* 715 * Did the host call something which needs immediate processing? 716 * Prepend the message instead of appending to the command queue then. 717 */ 718 bool fAppend; 719 switch (u32Function) 720 { 721 /* Cancelling the drag'n drop operation has higher priority than 722 * processing already buffered messages. */ 723 case DragAndDropSvc::HOST_DND_HG_EVT_CANCEL: 724 fAppend = false; 725 break; 726 727 default: 728 fAppend = true; 729 break; 730 } 731 732 /* 733 * If we prepending the message (instead of appending) this mean we need 734 * to re-schedule the message queue in order to get the new command executed as 735 * soon as possible. 736 */ 737 bool fReschedule = !fAppend; 738 739 rc = m_pManager->addMessage(u32Function, cParms, paParms, fAppend); 740 if ( RT_SUCCESS(rc) 741 && fReschedule) 742 { 743 rc = m_pManager->doReschedule(); 744 } 745 714 rc = m_pManager->addMessage(u32Function, cParms, paParms, true /* fAppend */); 746 715 if (RT_SUCCESS(rc)) 747 716 {
Note:
See TracChangeset
for help on using the changeset viewer.