<div dir="ltr">Hi Aleix,<div><br></div><div>Maybe my post wasn't clear, this is for multi-screen/multi-monitor setup, so for example I need to set the dock to screen 1 or screen 2 etc.</div><div><br></div><div>I've already used layer-shell to set the dock's anchor, strut, and layer, but it doesn't seem to support setting screen/monitor?</div><div><br></div><div>Thanks,</div><div>Viet</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 8, 2024 at 12:56 AM Aleix Pol <<a href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It depends on how you're placing your surface.<br>
<br>
Given you're asking about a dock in the KWin list, you should be using<br>
layer-shell. It does allow setting the output when placing it:<br>
<a href="https://wayland.app/protocols/wlr-layer-shell-unstable-v1#zwlr_layer_shell_v1:request:get_layer_surface" rel="noreferrer" target="_blank">https://wayland.app/protocols/wlr-layer-shell-unstable-v1#zwlr_layer_shell_v1:request:get_layer_surface</a><br>
<br>
As C++ API you can use layer-shell-qt:<br>
<a href="https://invent.kde.org/plasma/layer-shell-qt/" rel="noreferrer" target="_blank">https://invent.kde.org/plasma/layer-shell-qt/</a><br>
<br>
Best of luck,<br>
Aleix<br>
<br>
On Thu, Aug 8, 2024 at 12:54 AM Viet Dang <<a href="mailto:dangvd@gmail.com" target="_blank">dangvd@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> On Wayland, is there any way for third-party docks to set the screen where the dock resides?<br>
><br>
> I've looked through the Wayland protocol list but did not find anything relevant.<br>
><br>
> Thanks a lot,<br>
> Viet<br>
><br>
</blockquote></div>