<div dir="ltr">Hi,<div><br></div><div>The correct way to implement this on Linux would be:</div><div><br></div><div><a href="https://specifications.freedesktop.org/wm-spec/wm-spec-1.4.html">https://specifications.freedesktop.org/wm-spec/wm-spec-1.4.html</a><br></div><div><h3 class="gmail-title" style="color:rgb(0,0,0);font-family:"Times New Roman"">_NET_WM_MOVERESIZE</h3></div><div>We would need to implement a specific API to do this.<br></div><div><br></div><div>This specification is to tell the Window Manager: Start a window move operation.</div><div><br></div><div>-- Thiago.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 11 de out. de 2022 às 13:52, Thiago Milczarek Sayão <<a href="mailto:thiago.sayao@gmail.com">thiago.sayao@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Dirk,<div><br></div><div>I have tried your example, it seems the window manager is denying the application from being moved into negative coordinates, unless using the window manager itself.</div><div><br></div><div>It might be due to security reasons, but that's just me wondering.</div><div><br></div><div>It might have a different behaviour on other window managers (modern gnome uses mutter).</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 11 de out. de 2022 às 12:37, Dirk Lemmermann <<a href="mailto:dlemmermann@gmail.com" target="_blank">dlemmermann@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I just ran into this issue: <a href="https://bugs.openjdk.org/browse/JDK-8222794" target="_blank">https://bugs.openjdk.org/browse/JDK-8222794</a><div><br></div><div>The ticket is closed and marked as “not an issue”. Unfortunately there is no description why this is not an issue.</div><div><br></div><div>In our app we removed the window decorations of our main stage and use a custom design. For this to work we also have to reimplement the moving / dragging around of the window but with the limitation expressed by the ticket this seems to be impossible.</div><div><br></div><div>I don’t really see a good reason why programmatically setting the x- or y-coordinate should not result in the window being shown on a different screen. However, I am open for being told why that is :-)</div><div><br></div><div>Dirk</div><div><br></div></div></blockquote></div>
</blockquote></div>