From: SooChan Lim Date: Thu, 9 Mar 2023 02:14:14 +0000 (+0900) Subject: add wtz-shell protocol X-Git-Tag: accepted/tizen/unified/20230322.164703~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd36b707e13ac220016782b850afb411d6d44a22;p=platform%2Fcore%2Fuifw%2Fwayland-extension.git add wtz-shell protocol This is the waylanad protocol for supporting tizen-style surfaces. It provide the interfaces for the multi windows policy at Tizen Display Server. Change-Id: I31c29135f7cb67f760a1af46644496afd3a327e3 --- diff --git a/Makefile.am b/Makefile.am index 6773aa3..2edaa7d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -400,6 +400,23 @@ libwtz_screen_client_la_SOURCES = protocol/tizen/wtz-screen-protocol.c libwtz_screen_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@ libwtz_screen_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@ +### wtz_shell +protocol_LTLIBRARIES += \ + libwtz-shell-server.la \ + libwtz-shell-client.la +pkgconfig_DATA += \ + src/wtz-shell-server.pc \ + src/wtz-shell-client.pc +protocolinclude_HEADERS += \ + protocol/tizen/wtz-shell-server-protocol.h \ + protocol/tizen/wtz-shell-client-protocol.h +libwtz_shell_server_la_SOURCES = protocol/tizen/wtz-shell-protocol.c +libwtz_shell_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@ +libwtz_shell_server_la_LIBADD = @WAYLAND_SERVER_LIBS@ +libwtz_shell_client_la_SOURCES = protocol/tizen/wtz-shell-protocol.c +libwtz_shell_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@ +libwtz_shell_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@ + ### wayland-protocols unstable_protocols = \ protocol/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml \ @@ -449,6 +466,7 @@ tizen_protocols = \ protocol/tizen/tizen-policy-ext.xml \ protocol/tizen/wtz-foreign.xml \ protocol/tizen/wtz-screen.xml \ + protocol/tizen/wtz-shell.xml \ $(NULL) nobase_dist_pkgdata_DATA = \ diff --git a/protocol/tizen/wtz-shell.xml b/protocol/tizen/wtz-shell.xml new file mode 100644 index 0000000..377179e --- /dev/null +++ b/protocol/tizen/wtz-shell.xml @@ -0,0 +1,100 @@ + + + + Copyright © 2023 Samsung Electronics Co., Ltd. + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice (including the next + paragraph) shall be included in all copies or substantial portions of the + Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + + + This is the waylanad protocol for supporting tizen-style surfaces. + + + + + wtz_shell allows clients to turn a wl_surface into a wtz_surface which can + support the Tizen features in Tizen Dispaly Server. + + + + + Destroy this wtz_shell object. + Notify when the server that it is not going to use the wtz_shell + object anymore. + + + + + + This creates a wtz_surface for the given surface. + + + + + + + + + An interface that may be implemented by a wl_surface, for + implementations that provide a tizen-specific user interface. + + + + + This describes the type of decoration. + + + + + + + + Destroy the xdg_surface object. + + + + + + Notify this event when the decoration type of the wtz_surface has been + decided or changed. + + + + + + + Notify this event when this surface is assigned in the screen. + + + + + + + This assign the surface on a given screen. + + + + + + +