mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-05-28 02:50:21 -04:00
guard with since_version
This commit is contained in:
parent
36524c5bc4
commit
83dc7054fe
@ -133,7 +133,8 @@ void QWaylandLayerSurface::setExclusiveZone(int32_t zone)
|
||||
|
||||
void QWaylandLayerSurface::setExclusiveEdge(uint32_t edge)
|
||||
{
|
||||
set_exclusive_edge(edge);
|
||||
if (zwlr_layer_surface_v1_get_version(object()) >= ZWLR_LAYER_SURFACE_V1_SET_EXCLUSIVE_EDGE_SINCE_VERSION)
|
||||
set_exclusive_edge(edge);
|
||||
}
|
||||
|
||||
void QWaylandLayerSurface::setMargins(const QMargins &margins)
|
||||
|
Loading…
Reference in New Issue
Block a user