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

Aleix Pol aleixpol at kde.org
Thu Aug 8 00:56:35 BST 2024


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 AM Viet Dang <dangvd at gmail.com> wrote:
>
> Hi,
>
> On Wayland, is there any way for third-party docks to set the screen where the dock resides?
>
> I've looked through the Wayland protocol list but did not find anything relevant.
>
> Thanks a lot,
> Viet
>


More information about the kwin mailing list