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
c2784db41c
@ -98,6 +98,17 @@ 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";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void QWaylandLayerSurface::applyConfigure()
|
void QWaylandLayerSurface::applyConfigure()
|
||||||
{
|
{
|
||||||
window()->resizeFromApplyConfigure(m_pendingSize);
|
window()->resizeFromApplyConfigure(m_pendingSize);
|
||||||
|
@ -36,6 +36,7 @@ public:
|
|||||||
void setKeyboardInteractivity(uint32_t interactivity);
|
void setKeyboardInteractivity(uint32_t interactivity);
|
||||||
void setLayer(uint32_t layer);
|
void setLayer(uint32_t layer);
|
||||||
|
|
||||||
|
void attachPopup(QWaylandShellSurface *popup) override;
|
||||||
void applyConfigure() override;
|
void applyConfigure() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user