Comment 2 for bug 1671853

Revision history for this message
Alexander Bürger MET Norway (alexander-buerger-met-no) wrote :

"Backporting" the QDesktopWidget::screenNumber(QWidget*) function from qtbase HEAD helped for this particular problem. Packages with an extra patch (debian/patches/multiscreen-MET.diff) are available on launchpad: ppa:met-norway/updates-met

While the main problem is solved, the popups are still placed completely on one screen even if the combobox spans two screens. This is maybe a rather unusual window placement. Solving this probably requires changes to QDesktopWidget (screen number from widget corner) and QComboBox (popup placement such that it may span adjacent screens while still being completely visible without gap) and maybe other popups (QMenu?).