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
This commit is contained in:
Norman Feske 2024-12-05 14:49:28 +01:00 committed by Christian Helmuth
parent d0522706ba
commit 60d009e6c6

View File

@ -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();
}