video_shell: Exclude video surface from visibility policy 96/318096/1
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 13 Jan 2025 04:25:31 +0000 (13:25 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 13 Jan 2025 06:19:52 +0000 (15:19 +0900)
The video surface should be excluded from the visibility policy.
Ohterwise, it may be iconified by the visibility policy, resulting in
not being able to display video contents.

Change-Id: Ie339614b5d29020aeab78bda2e900fda50aac58f

src/bin/server/e_video_shell.c

index c11c2e784b9b664991c7f6036abd42dd3750bb90..7885aa23eecc51906ccd1791523d318e2ddf3e4c 100644 (file)
@@ -1719,6 +1719,12 @@ _video_shell_cb_get_surface(struct wl_client *client, struct wl_resource *resour
    surface->surface_destroy.notify = _video_surface_cb_surface_destroy;
    e_surface_destroy_listener_add(surface->surface, &surface->surface_destroy);
 
+   /* HACK: The video surface should be excluded from the visibility policy.
+    * Ohterwise, it may be iconified by the visibility policy, resulting in
+    * not being able to display video contents.
+    */
+   e_client_visibility_skip_set(e_surface_ec_get(e_surface), EINA_TRUE);
+
    ELOGF("VSHELL", "Created Surface(%p) from E_Surface(%p)", e_surface_ec_get(e_surface), surface, e_surface);
 }