]> git.sesse.net Git - kdenlive/blobdiff - src/KoSliderCombo.cpp
Fix titler sliders on dual screen config
[kdenlive] / src / KoSliderCombo.cpp
index 47a74736448f1fef8e17e74a138027883f13b1a1..538c71d31157f26427323b748b8e75ccfbd7108a 100644 (file)
@@ -176,7 +176,7 @@ void KoSliderCombo::KoSliderComboPrivate::showPopup()
     QRect popupRect(thePublic->mapToGlobal(QPoint(arrowPos - hdlPos - slider->x(), thePublic->size().height())), popSize);
 
     // Make sure the popup is not drawn outside the screen area
-    QRect screenRect = QApplication::desktop()->availableGeometry(container);
+    QRect screenRect = QApplication::desktop()->availableGeometry(thePublic);
     if (popupRect.right() > screenRect.right())
         popupRect.translate(screenRect.right() - popupRect.right(), 0);
     if (popupRect.left() < screenRect.left())