Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ARRISEOS-41099] Repaint page after receiving wpe_compositor_refresh_… #202

Open
wants to merge 1 commit into
base: lgi-master
Choose a base branch
from

Commits on Nov 9, 2022

  1. [ARRISEOS-41099] Repaint page after receiving wpe_compositor_refresh_…

    …event
    
    The entire page should be repainted after receiving
    wpe_compositor_refresh_event. This will make webbrowser repond
    to visibility change from awc_cli.
    
    Event flow:
    We receive an information about handle_configure method
    execution in wpe-backend-rdk. Thanks to this execution we know
    that the compositor change state and we need to repaint the
    app.
    As we get this info in network process thread we send it to the UI
    thread in wpe-backend-rdk via
    Wayland::EventDispatcher::singleton().sendEvent(). The wpe-browser
    is attached to EventDispatcher so by IPC we get this info in
    WPEView.cpp in wpe-webkit, wpe_view_backend_input_client callback.
    This event is received in UI thread while WebPage is working on
    network process thread. We send the event to the webpage by:
    page.repaintAfterCompositorReconfigure(); When we receive event on
    the proper thread, process and proper class we force the app to be
    repainted. To this we execute: m_drawingArea->forceRepaint(true);
    jaroslaw-bojko-red committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    afdd2c9 View commit details
    Browse the repository at this point in the history