Expose set_layer
The set_layer request allows to move a surface to another layer after creating it.
This commit is contained in:
parent
4ff7cf23c9
commit
b4c62f7926
5 changed files with 78 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue