Enerccio / ewlc

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

When switching vts, wlc_output_created_cb is called without corresponding wlc_output_destroyed_cb #97

Open WLCIssuesBot opened 7 years ago

WLCIssuesBot commented 7 years ago

Issue by Pamelloes Friday Apr 28, 2017 at 20:51 GMT Originally opened as https://github.com/Cloudef/wlc/issues/261


wlc_output_created_cb is called once when I start up wlc with a matching call to wlc_output_destroyed_cb when wlc gets shut down. However, each time I switch vts away from wlc and then switch back, wlc_output_created_cb gets called again. I added a check to wlc_get_outputs, and each time there is still only one output reported (which is correct). I haven't had an opportunity to examine the source yet so I don't quite know what's going on, but if I had to speculate, I would say that either the output is being destroyed without a wlc_output_destroyed_cb call when the vt is disabled or the wlc_output_created_cb is called each time the vt is activated despite a new output not necessarily being created.