<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:メイリオ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Mr.Pekka,<br><br>Thank you very much for your reply.<br><br><pre>>Maybe your client does call wl_shell_get_shell_surface(), but it does<br>>not flush the message to the socket. See wl_display_flush().</pre>I add wl_display_flush mothed call in source code.<br><br>When i run the application,there is no graphic on the display.<br>But i touch the screen,it seems that the window is rendered on the display.<br> <br>And i analyze the log and it seems that the render logic is implmented correctly.<br><br>Because of calling wl_display_flushthe,the time of IPC between wayland-client and wayland-server is just 1ms.<br><br>Why there is no grahic on the display?Could you give me some hint?<br><br>Best regards,<br>Andy<br><div>> Date: Fri, 27 Feb 2015 10:36:30 +0200<br>> From: ppaalanen@gmail.com<br>> To: williamyang13@hotmail.com<br>> CC: manuel.bachmann@open.eurogiciel.org; wayland-devel@lists.freedesktop.org<br>> Subject: Re: [Wayland1.5]Question about wl_shell_get_shell_surface<br>> <br>> On Fri, 27 Feb 2015 08:11:58 +0000<br>> Yang Andy <williamyang13@hotmail.com> wrote:<br>> <br>> > Hi Mr.Manuel,Mr.Pekka,<br>> > <br>> > Thank you <br>> > for your reply.<br>> > <br>> > I have further <br>> > investigated my log and find that IPC/communication bewteen Wayland-client(application) and wayland-server(weston) <br>> > consume 800ms<br>> > <br>> > wayland-client/application call wl_shell_get_shell_surface,it takes 800ms until reference <br>> > methol(shell_get_shell_surface) be called on the wayland-server <br>> > side.<br>> > <br>> > In my <br>> > opinion,Wayland-client just use socket to <br>> > communicate with wayland-server,why does it consume <br>> > 800ms?<br>> <br>> Maybe your client does call wl_shell_get_shell_surface(), but it does<br>> not flush the message to the socket. See wl_display_flush().<br>> http://wayland.freedesktop.org/docs/html/apb.html#Client-classwl__display_1a8463b6e5f4cf9a2a3ad2d543aedcf429<br>> <br>> Also see wl_display_prepare_read() how to properly do the client side<br>> event loop.<br>> http://wayland.freedesktop.org/docs/html/apb.html#Client-classwl__display_1a040dca18775e3177883f06bd6fdf395f<br>> <br>> Or, maybe your compositor does not wake up properly when there is<br>> incoming data in a client socket. A badly intergrated event loop might<br>> do that if you don't use wl_display_run().<br>> <br>> <br>> Thanks,<br>> pq<br></div> </div></body>
</html>