- Timestamp:
- Nov 28, 2014 11:57:37 AM (10 years ago)
- Location:
- trunk/src/VBox/Additions/x11
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
r52956 r53408 135 135 pState->cSizeHints = iDisplay + 1; 136 136 } 137 if ((!fChangeOrigin || fEnabled) && cx != 0 && cy != 0) 138 { 139 pState->paSizeHints[iDisplay] = (cx & 0xffff) << 16 | (cy & 0xffff); 137 if (!fEnabled || (cx != 0 && cy != 0)) 138 { 139 pState->paSizeHints[iDisplay] = (cx & 0x8fff) << 16 | (cy & 0x8fff); 140 if (!fEnabled) 141 pState->paSizeHints[iDisplay] = -1; 140 142 XChangeProperty(pState->pDisplay, DefaultRootWindow(pState->pDisplay), 141 143 XInternAtom(pState->pDisplay, "VBOX_SIZE_HINTS", 0), -
trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c
r52235 r53408 253 253 for (i = 0; i < prop->size && i < pVBox->cScreens; ++i) 254 254 { 255 if ( !((int32_t *)prop->data)[i])255 if (((int32_t *)prop->data)[i] == 0) 256 256 continue; 257 pVBox->pScreens[i].aPreferredSize.cx = ((int32_t *)prop->data)[i] >> 16; 258 pVBox->pScreens[i].aPreferredSize.cy = ((int32_t *)prop->data)[i] & 0xffff; 257 else if (((int32_t *)prop->data)[i] < 0) 258 pVBox->pScreens[i].afDisabled = true; 259 else 260 { 261 pVBox->pScreens[i].aPreferredSize.cx = 262 ((int32_t *)prop->data)[i] >> 16; 263 pVBox->pScreens[i].aPreferredSize.cy = 264 ((int32_t *)prop->data)[i] & 0x8fff; 265 } 259 266 } 260 267 }
Note:
See TracChangeset
for help on using the changeset viewer.