Re: Wayland plasma window management interface

Viet Dang <[email protected]> Wed, 17 Jan 2024 15:55:39 +0000
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <CAO-rTSF+c5GGEOK_CdsjjT4LjvDO2_1ihm_nXdzVBone8QAuEA@mail.gmail.com>
--000000000000f006b2060f26477d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks, Aleix :)


On Wed, Jan 17, 2024 at 3:49=E2=80=AFPM Aleix Pol <[email protected]> wrote:

> Good job! :)
>
> Aleix
>
> On Wed, Jan 17, 2024 at 4:44=E2=80=AFPM Viet Dang <[email protected]> wrot=
e:
> >
> > Last update on this: the root cause of my issue was that I did not use
> the existing wl_display (through the QNativeInterface) but I created a ne=
w
> one by calling wl_display_connect. Now I do the former and all is good (o=
fc
> no need to call wl_display_dispatch).
> >
> > Thanks,
> > Viet
> >
> >
> > On Tue, Jan 16, 2024 at 7:30=E2=80=AFPM Viet Dang <[email protected]> wr=
ote:
> >>
> >> Just wanted to update that I fixed it by calling wl_display_dispatch()
> after adding the listener: then I got all the events.
> >>
> >> Thanks,
> >> Viet
> >>
> >>
> >> On Mon, Jan 15, 2024 at 9:35=E2=80=AFPM Viet Dang <[email protected]> w=
rote:
> >>>
> >>> Thanks Aleix, I'll look into it.
> >>> Viet
> >>>
> >>>
> >>> On Mon, Jan 15, 2024 at 5:54=E2=80=AFPM Aleix Pol <[email protected]> =
wrote:
> >>>>
> >>>> I guess you can check with WAYLAND_DEBUG=3D1 what's going on. You mi=
ght
> >>>> find something.
> >>>> Also check KWin's logs.
> >>>>
> >>>> Aleix
> >>>>
> >>>> On Mon, Jan 15, 2024 at 6:41=E2=80=AFPM Viet Dang <[email protected]>=
 wrote:
> >>>> >
> >>>> > Hi,
> >>>> >
> >>>> > Anyone could give some advice on what might have caused my issue
> that I didn't receive any event from org_kde_plasma_window_management and
> org_kde_plasma_virtual_desktop_management Wayland interfaces?
> >>>> >
> >>>> > Thanks a lot,
> >>>> > Viet
> >>>> >
> >>>> >
> >>>> > On Fri, Jan 12, 2024 at 9:36=E2=80=AFPM Viet Dang <[email protected]=
m> wrote:
> >>>> >>
> >>>> >> 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]=
om>
> 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 <aleixpol@kde.=
org>
> wrote:
> >>>> >>>>
> >>>> >>>> Hi Viet,
> >>>> >>>> You need to request the interface on the desktop file:
> >>>> >>>>
> https://invent.kde.org/plasma/plasma-workspace/-/blob/master/shell/org.kd=
e.plasmashell.desktop.cmake?ref_type=3Dheads#L74
> >>>> >>>>
> >>>> >>>> Aleix
> >>>> >>>>
> >>>> >>>> On Thu, Jan 11, 2024 at 5:25=E2=80=AFPM Viet Dang <dangvd@gmail=
.com>
> wrote:
> >>>> >>>> >
> >>>> >>>> > 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 virtu=
al
> 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
> KWindowSystem (like the case with X11)?
> >>>> >>>> >
> >>>> >>>> > Thanks a lot,
> >>>> >>>> > Viet
> >>>> >>>> >
>

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

<div dir=3D"ltr"><div>Thanks, Aleix :)<br></div><div><br></div></div><br><d=
iv class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jan =
17, 2024 at 3:49=E2=80=AFPM Aleix Pol &lt;<a href=3D"mailto:[email protected]=
g">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quot=
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)=
;padding-left:1ex">Good job! :)<br>
<br>
Aleix<br>
<br>
On Wed, Jan 17, 2024 at 4:44=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; Last update on this: the root cause of my issue was that I did not use=
 the existing wl_display (through the QNativeInterface) but I created a new=
 one by calling wl_display_connect. Now I do the former and all is good (of=
c no need to call wl_display_dispatch).<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Viet<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jan 16, 2024 at 7:30=E2=80=AFPM Viet Dang &lt;<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Just wanted to update that I fixed it by calling wl_display_dispat=
ch() after adding the listener: then I got all the events.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Viet<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jan 15, 2024 at 9:35=E2=80=AFPM Viet Dang &lt;<a href=3D"m=
ailto:[email protected]" target=3D"_blank">[email protected]</a>&gt; wrote:<b=
r>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks Aleix, I&#39;ll look into it.<br>
&gt;&gt;&gt; Viet<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Mon, Jan 15, 2024 at 5:54=E2=80=AFPM Aleix Pol &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt; wro=
te:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I guess you can check with WAYLAND_DEBUG=3D1 what&#39;s go=
ing on. You might<br>
&gt;&gt;&gt;&gt; find something.<br>
&gt;&gt;&gt;&gt; Also check KWin&#39;s logs.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Aleix<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Mon, Jan 15, 2024 at 6:41=E2=80=AFPM Viet Dang &lt;<a h=
ref=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt; =
wrote:<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; Hi,<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; Anyone could give some advice on what might have caus=
ed my issue that I didn&#39;t receive any event from org_kde_plasma_window_=
management and org_kde_plasma_virtual_desktop_management Wayland interfaces=
?<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; Thanks a lot,<br>
&gt;&gt;&gt;&gt; &gt; Viet<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; On Fri, Jan 12, 2024 at 9:36=E2=80=AFPM Viet Dang &lt=
;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>=
&gt; wrote:<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; Hi Aleix,<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; So I have a follow-up question, if you don&#39;t =
mind:<br>
&gt;&gt;&gt;&gt; &gt;&gt; Now I have bound org_kde_plasma_window_management=
 and added an event listener with org_kde_plasma_window_management_add_list=
ener.<br>
&gt;&gt;&gt;&gt; &gt;&gt; However, I don&#39;t seem to receive any event (e=
.g. window_with_uuid or window).<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; The same with org_kde_plasma_virtual_desktop_mana=
gement -- I don&#39;t seem to receive any event (e.g. desktop_created or de=
sktop_removed).<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; Is there something that I&#39;m missing?<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; Thanks a lot,<br>
&gt;&gt;&gt;&gt; &gt;&gt; Viet<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; On Thu, Jan 11, 2024 at 8:31=E2=80=AFPM Viet Dang=
 &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt; Thanks, Aleix, for the quick response.<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt; I will do that (I guess also changing the exe=
c line to an absolute path).<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt; Cheers,<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt; Viet<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt; On Thu, Jan 11, 2024 at 7:07=E2=80=AFPM Aleix=
 Pol &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">aleixpol@kde=
.org</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; Hi Viet,<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; You need to request the interface on the =
desktop file:<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; <a href=3D"https://invent.kde.org/plasma/=
plasma-workspace/-/blob/master/shell/org.kde.plasmashell.desktop.cmake?ref_=
type=3Dheads#L74" rel=3D"noreferrer" target=3D"_blank">https://invent.kde.o=
rg/plasma/plasma-workspace/-/blob/master/shell/org.kde.plasmashell.desktop.=
cmake?ref_type=3Dheads#L74</a><br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; Aleix<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; On Thu, Jan 11, 2024 at 5:25=E2=80=AFPM V=
iet Dang &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">dangvd@g=
mail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt; Hi,<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &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/dangvd/crystal-dock</a>) to Wayland and have=
 some question on relevant Wayland interfaces:<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt; On the latest KDE5, when I tried lis=
ting 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.<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt; Does it mean that this interface is =
not available for third party programs?<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt; If this is the case, is there any pl=
an for KDE Plasma 6 to either make this interface available, or expose thes=
e functionalities in KWindowSystem (like the case with X11)?<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt; Thanks a lot,<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt; Viet<br>
&gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
</blockquote></div>

--000000000000f006b2060f26477d--