Negative coordinates do not work on Linux(Gnome), but on Windows
Thiago Milczarek Sayão
thiago.sayao at gmail.com
Tue Oct 11 20:22:26 UTC 2022
Hi,
The correct way to implement this on Linux would be:
https://specifications.freedesktop.org/wm-spec/wm-spec-1.4.html
_NET_WM_MOVERESIZE
We would need to implement a specific API to do this.
This specification is to tell the Window Manager: Start a window move
operation.
-- Thiago.
Em ter., 11 de out. de 2022 às 13:52, Thiago Milczarek Sayão <
thiago.sayao at gmail.com> escreveu:
> Hi Dirk,
>
> 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.
>
> It might be due to security reasons, but that's just me wondering.
>
> It might have a different behaviour on other window managers (modern gnome
> uses mutter).
>
>
>
> Em ter., 11 de out. de 2022 às 12:37, Dirk Lemmermann <
> dlemmermann at gmail.com> escreveu:
>
>> I just ran into this issue: https://bugs.openjdk.org/browse/JDK-8222794
>>
>> The ticket is closed and marked as “not an issue”. Unfortunately there is
>> no description why this is not an issue.
>>
>> 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.
>>
>> 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 :-)
>>
>> Dirk
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20221011/0ed028e9/attachment.htm>
More information about the openjfx-dev
mailing list