Re: C/C++ API to set screen for a window on Wayland

Aleix Pol <[email protected]> Thu, 8 Aug 2024 01:56:35 +0200
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <CACcA1RqVVx6TAEELKRwMvc6pMRdsdqQV=Sm64wV65Rt3q+vuyA@mail.gmail.com>
It depends on how you're placing your surface.

Given you're asking about a dock in the KWin list, you should be using
layer-shell. It does allow setting the output when placing it:
https://wayland.app/protocols/wlr-layer-shell-unstable-v1#zwlr_layer_shell_=
v1:request:get_layer_surface

As C++ API you can use layer-shell-qt:
https://invent.kde.org/plasma/layer-shell-qt/

Best of luck,
Aleix

On Thu, Aug 8, 2024 at 12:54=E2=80=AFAM Viet Dang <[email protected]> wrote:
>
> Hi,
>
> On Wayland, is there any way for third-party docks to set the screen wher=
e the dock resides?
>
> I've looked through the Wayland protocol list but did not find anything r=
elevant.
>
> Thanks a lot,
> Viet
>