mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-05-28 02:50:21 -04:00
Port to QWaylandShellSurface::attachPopup()
This commit is contained in:
parent
030df45a0d
commit
aabd0aa935
@ -98,6 +98,19 @@ void QWaylandLayerSurface::zwlr_layer_surface_v1_configure(uint32_t serial, uint
|
||||
}
|
||||
}
|
||||
|
||||
void QWaylandLayerSurface::attachPopup(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";
|
||||
}
|
||||
|
||||
QWaylandShellSurface::attachPopup(popup);
|
||||
}
|
||||
|
||||
void QWaylandLayerSurface::applyConfigure()
|
||||
{
|
||||
window()->resizeFromApplyConfigure(m_pendingSize);
|
||||
|
@ -36,6 +36,7 @@ public:
|
||||
void setKeyboardInteractivity(uint32_t interactivity);
|
||||
void setLayer(uint32_t layer);
|
||||
|
||||
void attachPopup(QWaylandShellSurface *popup) override;
|
||||
void applyConfigure() override;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user