At least when running wlc with the x11-backend output_resolution_cb gets called before the output_created_cb for the new output.
This is not only highly confusing, but may cause crashes if the output_resolution_cb might depend on some userdata being initialized.
For easy use of userdata pointers output_created should be the first emited callback and output_destroyed the very last. (view_created and view_destroyed alike.)
This is the only exception to this unwritten rule I have encounted so far and would like to know, if this is expected.
At least when running wlc with the x11-backend
output_resolution_cb
gets called before theoutput_created_cb
for the new output.This is not only highly confusing, but may cause crashes if the
output_resolution_cb
might depend on someuserdata
being initialized. For easy use of userdata pointersoutput_created
should be the first emited callback andoutput_destroyed
the very last. (view_created
andview_destroyed
alike.) This is the only exception to this unwritten rule I have encounted so far and would like to know, if this is expected.