Changeset 21772 in vbox
- Timestamp:
- Jul 22, 2009 10:46:26 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r20243 r21772 88 88 89 89 bool isMouseAbsolute() const { return mMouseAbsolute; } 90 91 bool shouldHideHostPointer() const 92 { return mMouseCaptured || (mMouseAbsolute && mHideHostPointer); } 90 93 91 94 void setAutoresizeGuest (bool on); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r21712 r21772 733 733 , mDesktopGeo (DesktopGeo_Invalid) 734 734 , mPassCAD (false) 735 , mHideHostPointer (false) 735 /* Don't show a hardware pointer until we have one to show */ 736 , mHideHostPointer (true) 736 737 { 737 738 Assert (!mConsole.isNull() && … … 1132 1133 * OnMousePointerShapeChange event handler. 1133 1134 * 1134 * This is necessary to avoid double-cursor issue when both the 1135 * guest and the host cursors are displayed in one place one-above-one. 1135 * This is necessary to avoid double-cursor issues where both the 1136 * guest and the host cursors are displayed in one place, one above the 1137 * other. 1136 1138 * 1137 * This is a workaround because the correct decision isto notify1139 * This is a workaround because the correct decision would be to notify 1138 1140 * the Guest Additions about we are entering the mouse integration 1139 1141 * mode. The GuestOS should hide it's cursor to allow using of 1140 1142 * host cursor for the guest's manipulation. 1141 1143 * 1142 * This notification is not possible right now due to there is1143 * no the required API. */1144 * This notification is not always possible though, as not all guests 1145 * support switching to a hardware pointer on demand. */ 1144 1146 if (enabled) 1145 1147 viewport()->setCursor (QCursor (Qt::BlankCursor)); … … 1235 1237 * for details. */ 1236 1238 QCursor cursor; 1237 if (!mHideHostPointer) 1239 if (shouldHideHostPointer()) 1240 cursor = QCursor (Qt::BlankCursor); 1241 else 1238 1242 cursor = viewport()->cursor(); 1239 else1240 cursor = QCursor (Qt::BlankCursor);1241 1243 mFrameBuf->resizeEvent (re); 1242 1244 viewport()->setCursor (cursor); 1243 1245 #else 1244 1246 mFrameBuf->resizeEvent (re); 1245 if (!mHideHostPointer) 1247 if (shouldHideHostPointer()) 1248 viewport()->setCursor (QCursor (Qt::BlankCursor)); 1249 else 1246 1250 viewport()->unsetCursor(); 1247 else1248 viewport()->setCursor (QCursor (Qt::BlankCursor));1249 1251 #endif 1250 1252
Note:
See TracChangeset
for help on using the changeset viewer.