From 910d3b814d02fc896c665bc7c4aad1db6317c666 Mon Sep 17 00:00:00 2001 From: Alan Griffiths Date: Fri, 6 Sep 2024 13:41:49 +0000 Subject: [PATCH] Fix missing `wl_surface.enter` events for outputs enabled at runtime. (#3585) In my [previous fix](https://github.com/canonical/mir/pull/3430) for #3414, I accidentally disabled sending `wl_surface.enter` events for surfaces on outputs enabled at runtime. This PR resolves that issue while still addressing #3414. --- src/server/frontend_wayland/output_manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/frontend_wayland/output_manager.cpp b/src/server/frontend_wayland/output_manager.cpp index 512e49f5d84..26c2ddc9149 100644 --- a/src/server/frontend_wayland/output_manager.cpp +++ b/src/server/frontend_wayland/output_manager.cpp @@ -224,7 +224,10 @@ void mf::OutputGlobal::bind(wl_resource* resource) { auto const instance = new OutputInstance(resource, this); instances[instance->client].push_back(instance); - instance->output_config_changed(output_config); + for (auto const& listener : listeners) + { + listener->output_config_changed(output_config); + } instance->send_done(); }