void VoutManager::configureFullscreen( VoutWindow& rWindow ) { int numScr = var_InheritInteger( getIntf(), "qt-fullscreen-screennumber" ); int x0 = m_pVoutMainWindow->getTop(); int y0 = m_pVoutMainWindow->getLeft(); int x, y, w, h; if( numScr >= 0 ) { // select screen requested by user OSFactory *pOsFactory = OSFactory::instance( getIntf() ); pOsFactory->getMonitorInfo( numScr, &x, &y, &w, &h ); } else { // select screen where display is already occurring rWindow.getMonitorInfo( &x, &y, &w, &h ); } if( x != x0 || y != y0 ) { // move and resize fullscreen m_pVoutMainWindow->move( x, y ); m_pVoutMainWindow->resize( w, h ); // ensure the fs controller is also moved if( m_pFscWindow ) { m_pFscWindow->moveTo( x, y, w, h ); } } }
void GenericWindow::getMonitorInfo( int* x, int* y, int* width, int* height ) const { OSFactory *pOsFactory = OSFactory::instance( getIntf() ); pOsFactory->getMonitorInfo( m_pOsWindow, x, y, width, height ); }