- Timestamp:
- Jun 7, 2007 4:18:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r3063 r3078 819 819 captureMouse (!enabled, false); 820 820 821 /* Hiding host cursor in case we are entering mouse integration 822 * mode until it's shape is set to the guest cursor shape in 823 * OnMousePointerShapeChange event handler. 824 * 825 * This is necessary to avoid double-cursor issue when both the 826 * guest and the host cursors are displayed in one place one-above-one. 827 * 828 * This is a workaround because the correct decision is to notify 829 * the Guest Additions about we are entering the mouse integration 830 * mode. The GuestOS should hide it's cursor to allow using of 831 * host cursor for the guest's manipulation. 832 * 833 * This notification is not possible right now due to there is 834 * no the required API. */ 835 if (enabled) 836 viewport()->setCursor (QCursor (BlankCursor)); 837 821 838 mouse_integration = enabled; 822 839 … … 893 910 fb->resizeEvent (re); 894 911 viewport()->unsetCursor(); 912 913 /* This event appears in case of guest video was changed 914 * for somehow even without video resolution change. 915 * In this last case the host VM window will not be resized 916 * according this event and the host mouse cursor which was 917 * unset to default here will not be hidden in capture state. 918 * So it is necessary to perform updateMouseClipping() for 919 * the guest resize event if the mouse cursor was captured. */ 920 if (mouse_captured) 921 updateMouseClipping(); 895 922 896 923 /* apply maximum size restriction */
Note:
See TracChangeset
for help on using the changeset viewer.