Skip to content

Commit

Permalink
nitpicker: notify clients on any panorama change
Browse files Browse the repository at this point in the history
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 genodelabs#5390
  • Loading branch information
nfeske authored and chelmuth committed Dec 10, 2024
1 parent d052270 commit 60d009e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions repos/os/src/server/nitpicker/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 60d009e

Please sign in to comment.