Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix setResizable(true) bug on Linux Mint #1091

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

Draft
duskvirkus wants to merge 4 commits into processing:main
base: main
Choose a base branch
Loading
from duskvirkus:dusk/resizable-window-fix-2

Conversation

@duskvirkus
Copy link

@duskvirkus duskvirkus commented May 12, 2025

Fixes #1003

Tested this after a gradle clean. Ran it about 8-10 times to ensure it was working as expected.

Screenshot from 2025年05月12日 12-44-51

I hope the reasoning behind the change is explained in comments but it seems like for whatever reason sometimes the window manager doesn't like multiple calls to frame.setResizable(). Noticed in debugging that if I removed where we set it to false then it works as expected. So the solution ultimately was to dispose of the frame and recreate it. Also noticed that a previous section of code about Insets likely would be good to un-comment because I was noticing black bars around sketches occasionally and this block of code seems to solve that.

This pr is intended to be squash merged.

SableRaf reacted with eyes emoji
Copy link
Collaborator

SableRaf commented May 12, 2025
edited
Loading

Hi @duskvirkus and thanks for your efforts on this PR.

I did notice a couple issues in testing (some of those may not be new). Note: I only tested on macOS so feel free to ignore those in case they are not relevant to the issue on Linux Mint. I can also open a new issue.

1. Glitchy rendering when resizing below the minimum size

A notable issue: when dragging inside the window beyond the minimal size, rendering starts glitching out.

Note: this issue is already present in 4.4.3

Screen.Recording.2025年05月12日.at.22.48.24.mov

2. Low resolution after exiting fullscreen

If you set the window to fullscreen (using the green maximize button on macOS), then press the green button again to return the sketch to its windowed state, the sketch gets very pixelated.

Note: this issue does not exist in 4.4.3 so it seems to be a regression from this PR.

Edit: I'm now unable to reproduce this issue.

image
duskvirkus reacted with eyes emoji

Copy link
Author

Thanks for the feedback. I took a quick look at some of these issues and was able to reproduce the first issue.

I could not find a quick fix for it so it I'll have to continue working on it over the coming days or weeks when I've got some free time.

I have yet to reproduce the second one but I will continue trying. It seems like it might be a infrequent bug so not sure if it was produced in this pr if it only happens sometimes. Unfortunately I don't have a mac to see if it is platform specific.

SableRaf and Stefterv reacted with heart emoji

@Stefterv Stefterv marked this pull request as draft June 17, 2025 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Resizable Window has rendering Bug

AltStyle によって変換されたページ (->オリジナル) /