Port away from deprecated KWindowSystem::windowInfo

This commit is contained in:
Friedrich W. H. Kossebau 2019-04-12 01:40:11 +02:00
parent 38ba8beee3
commit 6887d4e736

View File

@ -898,7 +898,7 @@ QPoint Dialog::popupPosition(QQuickItem *item, const QSize &size)
}
//if the item is in a dock or in a window that ignores WM we want to position the popups outside of the dock
const KWindowInfo winInfo = KWindowSystem::windowInfo(item->window()->winId(), NET::WMWindowType);
const KWindowInfo winInfo(item->window()->winId(), NET::WMWindowType);
const bool outsideParentWindow = ((winInfo.windowType(NET::AllTypesMask) == NET::Dock) || (item->window()->flags() & Qt::X11BypassWindowManagerHint))
&& item->window()->mask().isNull();