Skip to content
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

8329821: [Linux] When using i3 WM, menus are incorrectly sized #1437

Closed
wants to merge 1 commit into from

Conversation

tsayao
Copy link
Collaborator

@tsayao tsayao commented Apr 6, 2024

Simple fix to only request _NET_FRAME_EXTENTS if window has decoration.

It seems i3 replies with decorated sizes, even if window is not decorated.

Won't hurt other WMs.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8329821: [Linux] When using i3 WM, menus are incorrectly sized (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1437/head:pull/1437
$ git checkout pull/1437

Update a local copy of the PR:
$ git checkout pull/1437
$ git pull https://git.openjdk.org/jfx.git pull/1437/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1437

View PR using the GUI difftool:
$ git pr show -t 1437

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1437.diff

Webrev

Link to Webrev Comment

@tsayao tsayao changed the title [Linux] When using i3 WM, menus are incorrectly sized 8329821: [Linux] When using i3 WM, menus are incorrectly sized Apr 6, 2024
@bridgekeeper
Copy link

bridgekeeper bot commented Apr 6, 2024

👋 Welcome back tsayao! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Apr 6, 2024

@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:

8329821: [Linux] When using i3 WM, menus are incorrectly sized

Reviewed-by: arapte

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 49 new commits pushed to the master branch:

  • 88aad93: 8279140: ComboBox can lose selected value on item change via setAll
  • 97b1402: 8331748: Update libxml2 to 2.12.6
  • 581e3a7: 8329011: Update SQLite to 3.45.3
  • b86e677: 8282999: Add support for EXT-X-MEDIA tag in HTTP Live Streaming
  • eb6d55f: 8328603: HLS video stream fails to render consistently
  • 7699c44: 8092102: Labeled: textTruncated property
  • d3da033: 8330462: StringIndexOutOfBoundException when typing anything into TextField
  • 35880ce: 8331616: ChangeListener is not triggered when the InvalidationListener is removed
  • 36e65e8: 8331214: Doc: update spec for SpinnerFactory classes
  • 5400512: 8271865: SortedList::getViewIndex behaves not correctly for some index values
  • ... and 39 more: https://git.openjdk.org/jfx/compare/eca323547ec0e84b40bebb213350b6cea5385904...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr Ready for review label Apr 6, 2024
@mlbridge
Copy link

mlbridge bot commented Apr 6, 2024

Webrevs

@crschnick
Copy link

I recently got a report from a user running the latest xfce version that had the same problem where context menus and tooltips were cut off. But this fix is specific to i3?

image

@tsayao
Copy link
Collaborator Author

tsayao commented Apr 7, 2024

High chance it's the same problem.

@crschnick
Copy link

So I can reproduce this on my system now and could potentially test this PR. How would one go about this, testing a specific PR?

@kevinrushforth
Copy link
Member

So I can reproduce this on my system now and could potentially test this PR. How would one go about this, testing a specific PR?

You will need to checkout the PR branch and build JavaFX from source. See the "Using git" instructions added by Skara in the "Reviewing" section of this PR's Description for how to fetch and checkout this PR branch. See the build instructions Wiki page for instructions on building JavaFX.

@crschnick
Copy link

I can confirm on my system that this PR fixes the issues that I am seeing and some users reported. Here is a before and after comparison for context menus and tooltips:

image
image

image
image

The tests also pass for me (didn't build webkit though)

@arapte
Copy link
Member

arapte commented May 15, 2024

I could verify that this change fixes the issue with i3 window manager.
Shall do little more testing and update.

Copy link
Member

@arapte arapte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested with and without fix, with and without i3 window manager.

@openjdk openjdk bot added the ready Ready to be integrated label May 15, 2024
@tsayao
Copy link
Collaborator Author

tsayao commented May 15, 2024

/integrate

@openjdk
Copy link

openjdk bot commented May 15, 2024

Going to push as commit a7627fa.
Since your change was applied there have been 49 commits pushed to the master branch:

  • 88aad93: 8279140: ComboBox can lose selected value on item change via setAll
  • 97b1402: 8331748: Update libxml2 to 2.12.6
  • 581e3a7: 8329011: Update SQLite to 3.45.3
  • b86e677: 8282999: Add support for EXT-X-MEDIA tag in HTTP Live Streaming
  • eb6d55f: 8328603: HLS video stream fails to render consistently
  • 7699c44: 8092102: Labeled: textTruncated property
  • d3da033: 8330462: StringIndexOutOfBoundException when typing anything into TextField
  • 35880ce: 8331616: ChangeListener is not triggered when the InvalidationListener is removed
  • 36e65e8: 8331214: Doc: update spec for SpinnerFactory classes
  • 5400512: 8271865: SortedList::getViewIndex behaves not correctly for some index values
  • ... and 39 more: https://git.openjdk.org/jfx/compare/eca323547ec0e84b40bebb213350b6cea5385904...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label May 15, 2024
@openjdk openjdk bot closed this May 15, 2024
@openjdk openjdk bot removed ready Ready to be integrated rfr Ready for review labels May 15, 2024
@openjdk
Copy link

openjdk bot commented May 15, 2024

@tsayao Pushed as commit a7627fa.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
4 participants