Changeset 63328 in vbox
- Timestamp:
- Aug 11, 2016 11:34:03 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r63269 r63328 207 207 208 208 #ifdef VBOX_WS_X11 209 /* Return cached available-geometry: */ 210 return m_availableGeometryData.value(iHostScreenIndex); 209 /* Get cached available-geometry: */ 210 const QRect availableGeometry = m_availableGeometryData.value(iHostScreenIndex); 211 /* Return cached available-geometry if it's valid or screen-geometry otherwise: */ 212 return availableGeometry.isValid() ? availableGeometry : 213 QApplication::desktop()->screenGeometry(iHostScreenIndex); 211 214 #else /* !VBOX_WS_X11 */ 212 215 /* Redirect call to desktop-widget: */ … … 360 363 361 364 /* Apply received data: */ 365 const bool fSendSignal = m_availableGeometryData.value(iHostScreenIndex).isValid(); 362 366 m_availableGeometryData[iHostScreenIndex] = availableGeometry; 363 367 /* Forget finished worker: */ … … 368 372 369 373 /* Notify listeners: */ 370 emit sigHostScreenWorkAreaRecalculated(iHostScreenIndex); 374 if (fSendSignal) 375 emit sigHostScreenWorkAreaRecalculated(iHostScreenIndex); 371 376 } 372 377 #endif /* VBOX_WS_X11 */ … … 439 444 /* Get the screen-geometry: */ 440 445 const QRect hostScreenGeometry = screenGeometry(iHostScreenIndex); 441 /* Use the screen-geometry as the temporary value for available-geometry: */442 m_availableGeometryData[iHostScreenIndex] = hostScreenGeometry;443 446 444 447 /* Connect worker listener: */ … … 457 460 /* Destroy existing workers: */ 458 461 qDeleteAll(m_availableGeometryWorkers); 459 /* And clear their vector s: */462 /* And clear their vector: */ 460 463 m_availableGeometryWorkers.clear(); 461 m_availableGeometryData.clear();462 464 } 463 465
Note:
See TracChangeset
for help on using the changeset viewer.