flatpak / xdg-desktop-portal-gtk

Gtk implementation of xdg-desktop-portal
GNU Lesser General Public License v2.1
130 stars 102 forks source link

Shared windows are not updated when not visible in the screen #363

Open ningit opened 3 years ago

ningit commented 3 years ago

The shared view of a window is not updated when the original window is not visible in the screen (for example, if it is behind other windows), but it should. The following experiment reproduces the issue:

  1. Open a window whose contents change over time (for example, Totem playing a movie).
  2. Share that window in a videoconference application (like Meet in a browser). If the videoconference window is maximized and hides the shared window, the view of the latter in the videoconference layout appears frozen.
  3. Bring the shared window above in the screen, unmaximized, so that we can also see the videoconference application. Now, the contents of the shared window are updated in the videconference.

I am not sure whether this is the appropriate project to submit the issue. The original problem was reported in https://github.com/pdfpc/pdfpc/issues/625, and we think that the window is not updated due to an optimization of the compositor (Mutter here) for windows that are out of focus. However, this optimization should be disabled when the window is being shared, because it is visible through the other end.