Fix build with Qt 6.7
This also fixes a hypothetical case of a layer shell with subsurfaces and matches the call made by xdgshell after the first configure.
This also fixes a hypothetical case of a layer shell with subsurfaces and matches the call made by xdgshell after the first configure.