<div style="font-family: Arial; font-size: 14px;"><span>> Have you ported a panel plugin to use xfwl-foreign-toplevel yet?<br></span></div><div style="font-family: Arial; font-size: 14px;"><span><br></span></div><div style="font-family: Arial; font-size: 14px;"><span>No, but I will do it soon, starting with showdesktop I think. For now I only used the lib for intellihide, i.e. to know if the active window is maximized on the panel output. So I'll add other APIs to XfwlForeignToplevel next, including the protocol setters, which I haven't needed yet.</span><br></div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">> What is this "ext" namespace? Is it part of any project or community?<br></div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><span>I don't know, there's this protocol that's part of it: <span><a target="_blank" rel="noreferrer nofollow noopener" href="https://wayland.app/protocols/ext-session-lock-v1">https://wayland.app/protocols/ext-session-lock-v1</a></span></span><br></div><div style="font-family: Arial; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial; font-size: 14px;">
<div class="protonmail_signature_block-user">
Cheers,<br>Gaël <br></div><div class="protonmail_signature_block-user"><br></div>
</div>
<div class="protonmail_quote">
------- Original Message -------<br>
On Wednesday, September 14th, 2022 at 7:03 PM, adlo <adloconwy@gmail.com> wrote:<br><br>
<blockquote class="protonmail_quote" type="cite">
<div dir="ltr"></div><div dir="ltr">Have you ported a panel plugin to use xfwl-foreign-toplevel yet?</div><div dir="ltr"><br></div><div dir="ltr">What is this "ext" namespace? Is it part of any project or community?</div><div dir="ltr"><br></div><div dir="ltr">Regards</div><div dir="ltr">adlo</div><div dir="ltr"><br><blockquote type="cite">On 14 Sep 2022, at 10:56, Gaël Bonithon <trash.paradise@protonmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div style="font-family: Arial; font-size: 14px;"><span>Hi,<br></span></div><div style="font-family: Arial; font-size: 14px;"><span><br></span></div><div style="font-family: Arial; font-size: 14px;"><span>After playing a bit with the foreign-toplevel-management protocol to partially reproduce intelligent panel hiding on Wayland [1], and considering the use I will have to make of this protocol for plugins (at least showdesktop, tasklist, windowmenu), I thought it was worthwhile to start writing a little Wayland interaction library for Xfce.</span><div><br></div><div><span>It's basically wrapping Wayland objects in GObjects, to make them easier to use (at least getters for properties, more convenient signal management), to optimize resource management (caching compositor data only once), and to avoid repetitive writing of Wayland code.</span></div><div><br></div><div><span>For now it's limited to this protocol (+ some core utils), but there could be more in the future, for example if a request for adding a workspace protocol was accepted [2]. Taking a quick look at the Xfce code base, I see that as it is, at least Xfdesktop could benefit from it in the Xfce group, Xfdashboard, Xfce4-screensaver and Xfce4-taskmanager in the Apps group, and Xfce4-xkb-plugin and Xfce4-pulseaudio-plugin in plugins.</span></div><div><br></div><div><span>So maybe it would be worthwhile to get it out of the above MR before it is merged (which might not be anytime soon), and add it as a library to Xfce? Maybe also other people outside of Xfce devs might be interested in it, so that might be an argument for sharing it earlier.</span></div><div><br></div><div><span>I used the prefix `xfwl` so as not to make the symbols too long, because then you have to add the (approximately) full name of the protocol to avoid future collisions. This gives for example `xfwl-foreign-toplevel-manager.c`. So maybe the library could be called Libxfwl.</span></div><div><br></div><div><span>By building the above MR with `--enable-gtk-doc`, you can get a quick overview of what it looks like. It's in the "Wayland Interaction" section.</span></div><div><br></div><span>What do you think about it?</span><br></div><div style="font-family: Arial; font-size: 14px;"><br></div>
<div style="font-family: Arial; font-size: 14px;" class="protonmail_signature_block">
<div class="protonmail_signature_block-user">
Cheers,<br>Gaël<div><br></div><div>--</div><div><span>[1] <a href="https://gitlab.xfce.org/xfce/xfce4-panel/-/merge_requests/96" rel="noreferrer nofollow noopener" target="_blank">https://gitlab.xfce.org/xfce/xfce4-panel/-/merge_requests/96</a></span><br><span>[2] <a href="https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/40" rel="noreferrer nofollow noopener" target="_blank">https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/40</a></span><br></div>
</div>
</div>
<span>_______________________________________________</span><br><span>Xfce4-dev mailing list</span><br><span>Xfce4-dev@xfce.org</span><br><span>https://mail.xfce.org/mailman/listinfo/xfce4-dev</span></div></blockquote>
</blockquote><br>
</div>