<div dir="ltr"><div><div>Hi folks,<br><br>(This post follows a discussion which I will link at the end of the mail : *)<br><br></div>I have been working on an implementation of xdg_surface_present() for some time now ; here is a proposal with working code.<br>
<br></div><div>When creating a xdg_surface, the surface will not be mapped (i.e. shown) by desktop-shell anymore. It will only be if xdg_surface_present() has been called once.<br><br></div><div>If called twice, or more, the request will send an event to desktop-shell, so it can display a notification. A red tooltip with the title of the xdg_surface (xdg_surface_set_title()) will then appear on the right side of the top panel. (Tooltips will stack from right to left. They won't hide the launchers, although "invisible" tooltips really exist and will appear if they get sufficient space).<br>
</div><div><br>When clicked, the tooltip will disappear, and the corresponding xdg_surface is moved to the current workspace + put in foreground. (the tooltip also ceases to exist if the shell surface is destroyed by any means).<br>
<br></div><div>Here is a video : <a href="http://www.youtube.com/watch?v=eI4Stmx9B54">http://www.youtube.com/watch?v=eI4Stmx9B54</a><br><br></div><div>The code can be found at<a href="https://github.com/Tarnyko/weston-xdg_surface_present" style="word-wrap:break-word;color:rgb(70,130,180);font-family:Sans;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18px;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px"> <font>https://github.com/Tarnyko/weston-xdg_surface_present</font></a>. The "test" branch has the modifications to weston-simple-damage which will lead you the test case (run "weston-simple-damage --verbose").<br>
<br></div>Would like some feedback on both the "look-and-feel" and the implementation **. Thanks !<br><div><div><br><br>* : <a href="http://lists.freedesktop.org/archives/wayland-devel/2014-July/016078.html">http://lists.freedesktop.org/archives/wayland-devel/2014-July/016078.html</a><br clear="all">
<div><br></div><div>** main changes : new "desktop_shell_add_managed_surface" event and "managed_surface" interface in desktop-shell.xml, new "panel_notifier" widget, helper functions.<br></div>
<div>-- <br><div dir="ltr"><font>Regards,<br>
<br>
<i><b>Manuel BACHMANN</b><br>
Tizen Project<br>
VANNES-FR</i><br>
</font></div>
</div></div></div></div>