mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 23:20:55 +00:00
phone_manager: use Gui::info for screensaver's driver ready
Report 'display_driver_ready' to screensaver depending if <capture> node is present in Gui::info. The Gui::panorama call does not suffice because it reports the dimensions of the very last Capture client closed as fallback. issue #5496
This commit is contained in:
parent
adbfd05130
commit
4e6ea61c5f
@ -2156,11 +2156,13 @@ void Sculpt::Main::_update_window_layout(Xml_node const &decorator_margins,
|
||||
|
||||
void Sculpt::Main::_handle_gui_mode()
|
||||
{
|
||||
auto const panorama = _gui.panorama();
|
||||
bool capture_present = false;
|
||||
_gui.with_info([&](Xml_node const &info) {
|
||||
capture_present = info.has_sub_node("capture"); });
|
||||
|
||||
_screensaver.display_driver_ready(panorama.ok());
|
||||
_screensaver.display_driver_ready(capture_present);
|
||||
|
||||
panorama.with_result(
|
||||
_gui.panorama().with_result(
|
||||
[&] (Gui::Rect const rect) {
|
||||
_gui_mode_ready = true;
|
||||
_screen_size = rect.area;
|
||||
|
Loading…
x
Reference in New Issue
Block a user