Re: Wayland plasma window management interface

Viet Dang <[email protected]> Fri, 12 Jan 2024 21:36:25 +0000
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <CAO-rTSG1LUTj+cH80TLcBsWxic6RALg3zg3mM7HaD9Td_=kUYw@mail.gmail.com>
--0000000000006be9c9060ec675ca
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Aleix,

So I have a follow-up question, if you don't mind:
Now I have bound org_kde_plasma_window_management and added an event
listener with org_kde_plasma_window_management_add_listener.
However, I don't seem to receive any event (e.g. window_with_uuid or
window).

The same with org_kde_plasma_virtual_desktop_management -- I don't seem to
receive any event (e.g. desktop_created or desktop_removed).

Is there something that I'm missing?

Thanks a lot,
Viet

On Thu, Jan 11, 2024 at 8:31=E2=80=AFPM Viet Dang <[email protected]> wrote:

> Thanks, Aleix, for the quick response.
> I will do that (I guess also changing the exec line to an absolute path).
>
> Cheers,
> Viet
>
>
> On Thu, Jan 11, 2024 at 7:07=E2=80=AFPM Aleix Pol <[email protected]> wrot=
e:
>
>> Hi Viet,
>> You need to request the interface on the desktop file:
>>
>> https://invent.kde.org/plasma/plasma-workspace/-/blob/master/shell/org.k=
de.plasmashell.desktop.cmake?ref_type=3Dheads#L74
>>
>> Aleix
>>
>> On Thu, Jan 11, 2024 at 5:25=E2=80=AFPM Viet Dang <[email protected]> wro=
te:
>> >
>> > Hi,
>> >
>> > I'm looking to port my dock (https://github.com/dangvd/crystal-dock)
>> to Wayland and have some question on relevant Wayland interfaces:
>> >
>> > On the latest KDE5, when I tried listing available Wayland interfaces,
>> I couldn't see the window management interface
>> (org_kde_plasma_window_management) -- I did see the layer shell and virt=
ual
>> desktop ones though.
>> >
>> > Does it mean that this interface is not available for third party
>> programs?
>> >
>> > If this is the case, is there any plan for KDE Plasma 6 to either make
>> this interface available, or expose these functionalities in KWindowSyst=
em
>> (like the case with X11)?
>> >
>> > Thanks a lot,
>> > Viet
>> >
>>
>

--0000000000006be9c9060ec675ca
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Aleix,</div><div><br></div><div>So I have a follow=
-up question, if you don&#39;t mind:</div><div>Now I have bound org_kde_pla=
sma_window_management and added an event listener with=C2=A0org_kde_plasma_=
window_management_add_listener.</div><div>However, I don&#39;t seem to rece=
ive any event (e.g.=C2=A0window_with_uuid or window).</div><div><br></div><=
div>The same with=C2=A0org_kde_plasma_virtual_desktop_management -- I don&#=
39;t seem to receive any event (e.g. desktop_created or desktop_removed).</=
div><div><br></div><div>Is there something that I&#39;m missing?</div><div>=
<br></div><div>Thanks a lot,</div><div>Viet</div><br><div class=3D"gmail_qu=
ote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Jan 11, 2024 at 8:31=E2=
=80=AFPM Viet Dang &lt;<a href=3D"mailto:[email protected]">[email protected]=
</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
<div dir=3D"ltr">Thanks, Aleix, for the quick response.<div>I will do that =
(I guess also changing the exec line to an absolute path).</div><div><br></=
div><div>Cheers,</div><div>Viet</div><div><br></div></div><br><div class=3D=
"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Jan 11, 2024 at=
 7:07=E2=80=AFPM Aleix Pol &lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"g=
mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">Hi Viet,<br>
You need to request the interface on the desktop file:<br>
<a href=3D"https://invent.kde.org/plasma/plasma-workspace/-/blob/master/she=
ll/org.kde.plasmashell.desktop.cmake?ref_type=3Dheads#L74" rel=3D"noreferre=
r" target=3D"_blank">https://invent.kde.org/plasma/plasma-workspace/-/blob/=
master/shell/org.kde.plasmashell.desktop.cmake?ref_type=3Dheads#L74</a><br>
<br>
Aleix<br>
<br>
On Thu, Jan 11, 2024 at 5:25=E2=80=AFPM Viet Dang &lt;<a href=3D"mailto:dan=
[email protected]" target=3D"_blank">[email protected]</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m looking to port my dock (<a href=3D"https://github.com/dangvd/=
crystal-dock" rel=3D"noreferrer" target=3D"_blank">https://github.com/dangv=
d/crystal-dock</a>) to Wayland and have some question on relevant Wayland i=
nterfaces:<br>
&gt;<br>
&gt; On the latest KDE5, when I tried listing available Wayland interfaces,=
 I couldn&#39;t see the window management interface (org_kde_plasma_window_=
management) -- I did see the layer shell and virtual desktop ones though.<b=
r>
&gt;<br>
&gt; Does it mean that this interface is not available for third party prog=
rams?<br>
&gt;<br>
&gt; If this is the case, is there any plan for KDE Plasma 6 to either make=
 this interface available, or expose these functionalities in KWindowSystem=
 (like the case with X11)?<br>
&gt;<br>
&gt; Thanks a lot,<br>
&gt; Viet<br>
&gt;<br>
</blockquote></div>
</blockquote></div></div>

--0000000000006be9c9060ec675ca--