Changeset 49877 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Dec 11, 2013 4:27:39 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91244
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk
r49643 r49877 30 30 endif 31 31 VBoxClient_DEFS.linux += _GNU_SOURCE 32 ifdef VBOX_WITH_GUEST_KMS_DRIVER 33 VBoxClient_DEFS += VBOX_WITH_GUEST_KMS_DRIVER 34 endif 32 35 VBoxClient_SOURCES = \ 33 36 main.cpp -
trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
r44967 r49877 48 48 rc = VERR_NOT_SUPPORTED; 49 49 if (RT_SUCCESS(rc)) 50 { 50 51 rc = VbglR3CtlFilterMask(VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST, 0); 52 #ifdef VBOX_WITH_GUEST_KMS_DRIVER 53 if (RT_SUCCESS(rc)) 54 VbglR3SetGuestCaps(VMMDEV_GUEST_SUPPORTS_GRAPHICS, 0); 55 #endif 56 } 51 57 else 52 58 VbglR3CtlFilterMask(0, VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST); … … 68 74 if (RT_FAILURE(rc)) 69 75 { 70 VbglR3CtlFilterMask(0, VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED); 76 VbglR3CtlFilterMask(0, VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED 77 | VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST); 78 #ifdef VBOX_WITH_GUEST_KMS_DRIVER 79 VbglR3SetGuestCaps(0, VMMDEV_GUEST_SUPPORTS_GRAPHICS); 80 #endif 71 81 VbglR3SetMouseStatus( fMouseFeatures 72 82 | VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR); … … 82 92 VbglR3CtlFilterMask(0, VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST 83 93 | VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED); 94 #ifdef VBOX_WITH_GUEST_KMS_DRIVER 95 VbglR3SetGuestCaps(0, VMMDEV_GUEST_SUPPORTS_GRAPHICS); 96 #endif 84 97 int rc = VbglR3GetMouseStatus(&fMouseFeatures, NULL, NULL); 85 98 if (RT_SUCCESS(rc)) … … 223 236 { 224 237 RTStrPrintf(szCommand, sizeof(szCommand), 225 "%s --output VBOX%u --set VBOX_MODE %dx%d", 226 pcszXrandr, iDisplay, cx, cy); 238 "%s --output VGA-%u --set VBOX_MODE %d", 239 pcszXrandr, iDisplay, 240 (cx & 0xffff) << 16 | (cy & 0xffff)); 227 241 system(szCommand); 228 242 } … … 231 245 { 232 246 RTStrPrintf(szCommand, sizeof(szCommand), 233 "%s --output V BOX%u --auto --pos %dx%d",247 "%s --output VGA-%u --auto --pos %dx%d", 234 248 pcszXrandr, iDisplay, cxOrg, cyOrg); 235 249 system(szCommand); 236 250 } 237 251 RTStrPrintf(szCommand, sizeof(szCommand), 238 "%s --output V BOX%u --preferred",252 "%s --output VGA-%u --preferred", 239 253 pcszXrandr, iDisplay); 240 254 system(szCommand); … … 243 257 { 244 258 RTStrPrintf(szCommand, sizeof(szCommand), 245 "%s --output V BOX%u --off",259 "%s --output VGA-%u --off", 246 260 pcszXrandr, iDisplay); 247 261 system(szCommand); … … 253 267 { 254 268 RTStrPrintf(szCommand, sizeof(szCommand), 255 "%s --output VBOX%u --set VBOX_MODE %dx%d", 256 pcszXrandr, iDisplay, cx, cy); 269 "%s --output VGA-%u --set VBOX_MODE %d", 270 pcszXrandr, iDisplay, 271 (cx & 0xffff) << 16 | (cy & 0xffff)); 257 272 system(szCommand); 258 273 RTStrPrintf(szCommand, sizeof(szCommand), 259 "%s --output V BOX%u --preferred",274 "%s --output VGA-%u --preferred", 260 275 pcszXrandr, iDisplay); 261 276 system(szCommand);
Note:
See TracChangeset
for help on using the changeset viewer.