-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8348095: [Linux] Menu shows up in wrong position when using i3 windows manager in full screen mode #1702
Conversation
…s manager in full screen mode
👋 Welcome back tsayao! A progress list of the required criteria for merging this PR into |
@tsayao This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested successfully on Ubuntu, with or without i3 wm, and Fedora+Sway.
It looks good, but I had to add some debug info myself for better understanding of the changes... so that's why I left one remark.
modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@lukostyra Can you also review? /reviewers 2 |
@kevinrushforth |
Can you merge the latest master? Web tests are failing on my end but I suspect it's because of WebKit upgrade that just happened (latest master works fine and this branch does not have it) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works fine now. LGTM
/integrate |
Going to push as commit b267340. |
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.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1702/head:pull/1702
$ git checkout pull/1702
Update a local copy of the PR:
$ git checkout pull/1702
$ git pull https://git.openjdk.org/jfx.git pull/1702/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1702
View PR using the GUI difftool:
$ git pr show -t 1702
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1702.diff
Using Webrev
Link to Webrev Comment