mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-07-14 02:54:31 -04:00
Expose set_layer
The set_layer request allows to move a surface to another layer after creating it.
This commit is contained in:
@ -77,4 +77,10 @@ void QWaylandLayerSurface::setKeyboardInteractivity(bool enabled)
|
||||
set_keyboard_interactivity(enabled);
|
||||
}
|
||||
|
||||
void QWaylandLayerSurface::setLayer(uint32_t layer)
|
||||
{
|
||||
if (zwlr_layer_surface_v1_get_version(object()) >= ZWLR_LAYER_SURFACE_V1_SET_LAYER_SINCE_VERSION)
|
||||
set_layer(layer);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user