Changeset 89712 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 15, 2021 3:09:18 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145160
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxX11Helper.cpp
r89708 r89712 175 175 serviceNames << strServiceName; 176 176 } 177 if (serviceNames.isEmpty()) 178 LogRel(("No screen saver service found among registered DBus services.")); 179 177 180 return serviceNames; 178 181 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r89704 r89712 713 713 { 714 714 #if defined(VBOX_WS_X11) 715 if (m_fHostScreenSaverDisabled == fDisabled) 716 return; 717 m_fHostScreenSaverDisabled = fDisabled; 718 715 719 QStringList services = X11ScrenSaverServices(); 716 720 if (services.isEmpty()) 717 721 return; 718 722 719 Q_UNUSED(fDisabled); 723 if (fDisabled) 724 X11InhibitScrenSaver(services, m_screenSaverInhibitionCookies); 725 else 726 X11UninhibitScrenSaver(m_screenSaverInhibitionCookies); 727 720 728 #else 721 729 Q_UNUSED(fDisabled); … … 880 888 , m_pSoftKeyboardDialog(0) 881 889 , m_pVMInformationDialog(0) 890 , m_fHostScreenSaverDisabled(false) 882 891 { 883 892 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r89700 r89712 455 455 UISoftKeyboard *m_pSoftKeyboardDialog; 456 456 UIVMInformationDialog *m_pVMInformationDialog; 457 458 /* Holds the cookies returnd by QDBus inhibition calls. Map keys are service name. These are required during uninhibition.*/ 459 QMap<QString, uint> m_screenSaverInhibitionCookies; 460 bool m_fHostScreenSaverDisabled; 461 457 462 /* Friend classes: */ 458 463 friend class UIMachineWindow;
Note:
See TracChangeset
for help on using the changeset viewer.