mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 09:46:20 +00:00
imx8_fb_drv: make 'Capture' constructible
Reconstruct capture connection on config update in order to receive update of complete screen data from GUI session. fixes #3878
This commit is contained in:
parent
ad595d2701
commit
0fd979b147
@ -71,7 +71,7 @@ class Framebuffer::Driver
|
||||
* Capture
|
||||
*/
|
||||
|
||||
Capture::Connection _capture { _env };
|
||||
Constructible<Capture::Connection> _capture { };
|
||||
|
||||
Constructible<Capture::Connection::Screen> _captured_screen { };
|
||||
|
||||
@ -147,7 +147,14 @@ class Framebuffer::Driver
|
||||
|
||||
Area const size { _lx_config._lx.width, _lx_config._lx.height };
|
||||
|
||||
_captured_screen.construct(_capture, _env.rm(), size);
|
||||
|
||||
if (_captured_screen.constructed()) {
|
||||
_capture.destruct();
|
||||
_captured_screen.destruct();
|
||||
}
|
||||
|
||||
_capture.construct(_env);
|
||||
_captured_screen.construct(*_capture, _env.rm(), size);
|
||||
|
||||
_capture_timer.trigger_periodic(10*1000);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user