mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-07-14 11:04:20 -04:00
Port to QWaylandShellSurface::attachPopup()
This commit is contained in:
@ -97,6 +97,19 @@ void QWaylandLayerSurface::zwlr_layer_surface_v1_configure(uint32_t serial, uint
|
||||
}
|
||||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
|
||||
void QWaylandLayerSurface::attachPopup(QtWaylandClient::QWaylandShellSurface *popup)
|
||||
{
|
||||
std::any anyRole = popup->surfaceRole();
|
||||
|
||||
if (auto role = std::any_cast<::xdg_popup *>(&anyRole)) {
|
||||
get_popup(*role);
|
||||
} else {
|
||||
qCWarning(LAYERSHELLQT) << "Cannot attach popup of unknown type";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void QWaylandLayerSurface::applyConfigure()
|
||||
{
|
||||
window()->resizeFromApplyConfigure(m_pendingSize);
|
||||
|
Reference in New Issue
Block a user