From 60d009e6c64a7ccf2dea47aaccb94e1be88f9cfa Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 5 Dec 2024 14:49:28 +0100 Subject: [PATCH] nitpicker: notify clients on any panorama change Nitpicker used to notify GUI clients about an updated GUI info only when the total panorama size changed. However, in situations where two capture clients are swapped, the total size may stay the same whereas the relation of displays to different parts of the panorama is no longer the same. Such changes are interesting to some clients like the window layouter, which needs to update the assignement of screens to displays. This patch changes nitpicker so that each panorama change is reflected to GUI clients as a mode-info update. Issue #5390 --- repos/os/src/server/nitpicker/main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repos/os/src/server/nitpicker/main.cc b/repos/os/src/server/nitpicker/main.cc index 2772de0dc6..f9749135a3 100644 --- a/repos/os/src/server/nitpicker/main.cc +++ b/repos/os/src/server/nitpicker/main.cc @@ -717,12 +717,12 @@ struct Nitpicker::Main : Focus_updater, Hover_updater, /* redraw */ _view_stack.update_all_views(); - - /* notify clients about the change screen mode */ - for (Gui_session *s = _session_list.first(); s; s = s->next()) - s->notify_mode_change(); } + /* notify GUI clients about the mode-info change */ + for (Gui_session *s = _session_list.first(); s; s = s->next()) + s->notify_mode_change(); + _report_panorama(); _update_input_connection(); }