Incorrect screen capture on ubuntu 19.10 (#20)
Added support Qt version 5.12.4 (relevant for ubuntu 19.10)
This commit is contained in:
		
							parent
							
								
									fa89460466
								
							
						
					
					
						commit
						393cec503d
					
				@ -246,8 +246,14 @@ void Manager::capture () {
 | 
			
		||||
  QList<QScreen *> screens = QApplication::screens ();
 | 
			
		||||
  foreach (QScreen * screen, screens) {
 | 
			
		||||
    QRect geometry = screen->availableGeometry ();
 | 
			
		||||
    #if QT_VERSION >= QT_VERSION_CHECK(5,10,0)
 | 
			
		||||
    QPixmap pixmap = screen->grabWindow (0, 0, 0,
 | 
			
		||||
                                         geometry.width (), geometry.height ());
 | 
			
		||||
    #else
 | 
			
		||||
    QPixmap pixmap = screen->grabWindow (0, geometry.x (), geometry.y (),
 | 
			
		||||
                                         geometry.width (), geometry.height ());
 | 
			
		||||
    #endif
 | 
			
		||||
 | 
			
		||||
    QString name = screen->name ();
 | 
			
		||||
    if (!selections_.contains (name)) {
 | 
			
		||||
      SelectionDialog *selection = new SelectionDialog (*dictionary_);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user