RFR: 8348095: [Linux] Menu shows up in wrong position when using i3 windows manager in full screen mode [v3]

Thiago Milczarek Sayao tsayao at openjdk.org
Tue Feb 11 12:12:15 UTC 2025


On Tue, 11 Feb 2025 11:51:26 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:

>> The issue was with the view's position, specifically the content's X and Y coordinates relative to the window, including its decorations. When in fullscreen mode, the window remains decorated, but the decorations are hidden. As a result, the content's position needs to be recalculated to account for the window's adjusted layout.
>> 
>> It's not specific to i3.
>> 
>> I used `gdk_window_get_root_origin` because GTK provides a more robust mechanism to determine the value, even in cases where _NET_FRAME_EXTENTS is not supported by the window manager.
>
> Thiago Milczarek Sayao has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Clarify the meaning of x and y.

I tested it on Ubuntu 24.04 with Xorg / Wayland (Gnome) and Xorg / Kde.
Did a complete unit test run on 20.04 / Xorg (Gnome) with one unrelated failure.

![image](https://github.com/user-attachments/assets/c349a397-1a01-428b-974e-19ff4ed19f3a)

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1702#issuecomment-2650622782


More information about the openjfx-dev mailing list