Re: Wayland plasma window management interface
Viet Dang <[email protected]> Tue, 16 Jan 2024 19:30:16 +0000
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <CAO-rTSEh_TVdueZqPbGb1G=Hzfd0PH7Qh48aHac-Y0ZfdSg0=w@mail.gmail.com> |
--000000000000aa05e8060f1529f7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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]> wrote: > Thanks Aleix, I'll look into it. > Viet > > > On Mon, Jan 15, 2024 at 5:54=E2=80=AFPM Aleix Pol <[email protected]> wrot= e: > >> I guess you can check with WAYLAND_DEBUG=3D1 what's going on. You might >> find something. >> Also check KWin's logs. >> >> Aleix >> >> On Mon, Jan 15, 2024 at 6:41=E2=80=AFPM Viet Dang <[email protected]> wro= te: >> > >> > 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]> w= rote: >> >> >> >> 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]>= wrote: >> >>>> >> >>>> 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]= > 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 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 >> KWindowSystem (like the case with X11)? >> >>>> > >> >>>> > Thanks a lot, >> >>>> > Viet >> >>>> > >> > --000000000000aa05e8060f1529f7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Just wanted to update that I fixed it by calling=C2=A0wl_d= isplay_dispatch() after adding the listener: then I got all the events.<div= ><br></div><div>Thanks,</div><div>Viet</div><div><br></div></div><br><div c= lass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Jan 15, = 2024 at 9:35=E2=80=AFPM Viet Dang <<a href=3D"mailto:[email protected]" t= arget=3D"_blank">[email protected]</a>> wrote:<br></div><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><div dir=3D"ltr">Thanks Aleix, I'll lo= ok into it.<div>Viet</div><div><br></div></div><br><div class=3D"gmail_quot= e"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Jan 15, 2024 at 5:54=E2=80= =AFPM Aleix Pol <<a href=3D"mailto:[email protected]" target=3D"_blank">a= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex">I guess you can check with WAYLAND_DEBUG=3D1 what's goin= g on. You might<br> find something.<br> Also check KWin's logs.<br> <br> Aleix<br> <br> On Mon, Jan 15, 2024 at 6:41=E2=80=AFPM Viet Dang <<a href=3D"mailto:dan= [email protected]" target=3D"_blank">[email protected]</a>> wrote:<br> ><br> > Hi,<br> ><br> > 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 or= g_kde_plasma_virtual_desktop_management Wayland interfaces?<br> ><br> > Thanks a lot,<br> > Viet<br> ><br> ><br> > On Fri, Jan 12, 2024 at 9:36=E2=80=AFPM Viet Dang <<a href=3D"mailt= o:[email protected]" target=3D"_blank">[email protected]</a>> wrote:<br> >><br> >> Hi Aleix,<br> >><br> >> So I have a follow-up question, if you don't mind:<br> >> Now I have bound org_kde_plasma_window_management and added an eve= nt listener with org_kde_plasma_window_management_add_listener.<br> >> However, I don't seem to receive any event (e.g. window_with_u= uid or window).<br> >><br> >> The same with org_kde_plasma_virtual_desktop_management -- I don&#= 39;t seem to receive any event (e.g. desktop_created or desktop_removed).<b= r> >><br> >> Is there something that I'm missing?<br> >><br> >> Thanks a lot,<br> >> Viet<br> >><br> >> On Thu, Jan 11, 2024 at 8:31=E2=80=AFPM Viet Dang <<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]</a>> wrote:<b= r> >>><br> >>> Thanks, Aleix, for the quick response.<br> >>> I will do that (I guess also changing the exec line to an abso= lute path).<br> >>><br> >>> Cheers,<br> >>> Viet<br> >>><br> >>><br> >>> On Thu, Jan 11, 2024 at 7:07=E2=80=AFPM Aleix Pol <<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>> wro= te:<br> >>>><br> >>>> 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/shell/org.kde.plasmashell.desktop.cmake?ref_type=3Dheads#L74"= rel=3D"noreferrer" target=3D"_blank">https://invent.kde.org/plasma/plasma-= workspace/-/blob/master/shell/org.kde.plasmashell.desktop.cmake?ref_type=3D= heads#L74</a><br> >>>><br> >>>> Aleix<br> >>>><br> >>>> On Thu, Jan 11, 2024 at 5:25=E2=80=AFPM Viet Dang <<a h= ref=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>> = wrote:<br> >>>> ><br> >>>> > Hi,<br> >>>> ><br> >>>> > I'm looking to port my dock (<a href=3D"https://g= ithub.com/dangvd/crystal-dock" rel=3D"noreferrer" target=3D"_blank">https:/= /github.com/dangvd/crystal-dock</a>) to Wayland and have some question on r= elevant Wayland interfaces:<br> >>>> ><br> >>>> > On the latest KDE5, when I tried listing available Wa= yland interfaces, I couldn't see the window management interface (org_k= de_plasma_window_management) -- I did see the layer shell and virtual deskt= op ones though.<br> >>>> ><br> >>>> > Does it mean that this interface is not available for= third party programs?<br> >>>> ><br> >>>> > 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> >>>> ><br> >>>> > Thanks a lot,<br> >>>> > Viet<br> >>>> ><br> </blockquote></div> </blockquote></div> --000000000000aa05e8060f1529f7--