Function miral::window_for

Function Documentation

auto miral::window_for(wl_resource *surface) -> Window

Get the MirAL Window for a Wayland Surface, XdgSurface, etc. Note that there may not be a corresponding miral::Window (e.g. the surface is created and assigned properties before ‘commit’ creates the miral::Window).

Remark

Since MirAL 2.5

Returns:

The window (null if no window is found)