Enerccio / ewlc

Wayland compositor library - extended
MIT License
20 stars 3 forks source link

output_resolution gets called before output_created #72

Open WLCIssuesBot opened 7 years ago

WLCIssuesBot commented 7 years ago

Issue by Drakulix Tuesday Nov 15, 2016 at 19:06 GMT Originally opened as https://github.com/Cloudef/wlc/issues/207


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.

WLCIssuesBot commented 7 years ago

Comment by Drakulix Friday Nov 25, 2016 at 09:36 GMT


Another inconvenience: output_context_destroyed might be called after output_destroyed.

WLCIssuesBot commented 7 years ago

Comment by Enerccio Friday Apr 07, 2017 at 18:41 GMT


I can confirm first bug.

Second one is correct behavior, I think?