- Timestamp:
- Nov 10, 2016 11:30:13 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r64627 r64628 23 23 # include <QApplication> 24 24 # include <QDesktopWidget> 25 # ifdef VBOX_WS_X11 26 # include <QTimer> 27 # endif 25 28 # if QT_VERSION >= 0x050000 26 29 # include <QScreen> … … 60 63 /** Constructs invisible window for the host-screen with @a iHostScreenIndex. */ 61 64 UIInvisibleWindow(int iHostScreenIndex); 65 66 private slots: 67 68 /** Performs fallback drop. */ 69 void sltFallback(); 62 70 63 71 private: … … 95 103 if (vboxGlobal().isCompositingManagerRunning()) 96 104 setAttribute(Qt::WA_TranslucentBackground); 105 /* Install fallback handler: */ 106 QTimer::singleShot(5000, this, SLOT(sltFallback())); 107 } 108 109 void UIInvisibleWindow::sltFallback() 110 { 111 LogRel(("GUI: UIInvisibleWindow::sltFallback: %s event haven't came. " 112 "Screen: %d, work area: %dx%d x %dx%d\n", 113 !m_fMoveCame ? "Move" : !m_fResizeCame ? "Resize" : "Some", 114 m_iHostScreenIndex, x(), y(), width(), height())); 115 emit sigHostScreenAvailableGeometryCalculated(m_iHostScreenIndex, QRect(x(), y(), width(), height())); 97 116 } 98 117
Note:
See TracChangeset
for help on using the changeset viewer.