To set up the secondary display, see Dual-Display Setup.įor detailed information on the webOS-specific protocol extension, visit webOS OSE GitHub. If you set the last parameter to 1, the sample app will be displayed on a secondary display. Line(20) : Set the property related to display.Line(11~18) : Create a webOS shell surface for an existing surface and add the listener to receive events.Line(5~6) : Declare wl_webos_shell and wl_webos_shell_surface structure which are the webOS specific extension of wl_shell and wl_shell_surface.Line(1) : Include wayland-webos-shell-client-protocol.h header file which has wl_webos_shell and wl_webos_shell_surface structure.Wl_webos_shell_surface_set_property(g_pstWebosShellSurface, "displayAffinity", ( getenv( "DISPLAY_ID") ? getenv( "DISPLAY_ID") : "0")) for secondary display, set the last parameter as 1 Wl_webos_shell_surface_set_property(g_pstWebosShellSurface, "appId", ( getenv( "APP_ID") ? getenv( "APP_ID") : "")) Wl_webos_shell_surface_add_listener(g_pstWebosShellSurface, &s_pstWebosShellListener, g_pstDisplay) G_pstWebosShellSurface = wl_webos_shell_get_shell_surface(g_pstWebOSShell, g_pstSurface) įprintf(stderr, "Can't create webos shell surface \n ") Please see wayland-webos-shell-client-protocol.h file for webOS specific wayland protocol Struct wl_webos_shell_surface *g_pstWebosShellSurface = NULL Struct wl_webos_shell *g_pstWebOSShell = NULL
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |