mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
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:
parent
d0522706ba
commit
60d009e6c6
@ -717,11 +717,11 @@ struct Nitpicker::Main : Focus_updater, Hover_updater,
|
||||
|
||||
/* redraw */
|
||||
_view_stack.update_all_views();
|
||||
}
|
||||
|
||||
/* notify clients about the change screen mode */
|
||||
/* 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();
|
||||
|
Loading…
Reference in New Issue
Block a user