FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Only set Newt window icons on Windows by Stefterv · Pull Request #1398 · processing/processing4 · GitHub

Only set Newt window icons on Windows - #1398

Merged
catilac merged 1 commit into
processing:mainfrom
Stefterv:fix-only-windows
Feb 2, 2026
Merged

Only set Newt window icons on Windows#1398
catilac merged 1 commit into
processing:mainfrom
Stefterv:fix-only-windows

Conversation

Stefterv commented Jan 30, 2026
edited
Loading

Copy link
Copy Markdown
Member

Wrap the NewtFactory.setWindowIcons(res) call in a platform check so icons are only set when PApplet.platform == PConstants.WINDOWS. This avoids invoking the icon-setting behavior on non-Windows platforms. Also reorganize and consolidate import statements (add missing AWT/Swing, JOGL and Processing imports) to fix compilation and include required classes.

This solves the issue where I got a JOGL natives error on macOS (and probably Linux as well)

Also solves an issue for #1234

Wrap the NewtFactory.setWindowIcons(res) call in a platform check so icons are only set when PApplet.platform == PConstants.WINDOWS. This avoids invoking the icon-setting behavior on non-Windows platforms. Also reorganize and consolidate import statements (add missing AWT/Swing, JOGL and Processing imports) to fix compilation and include required classes.
Stefterv marked this pull request as ready for review January 30, 2026 16:21
Stefterv requested a review from catilac January 30, 2026 16:21

catilac left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm!

catilac merged commit c81cda7 into processing:main Feb 2, 2026
11 of 12 checks passed
Stefterv deleted the fix-only-windows branch February 2, 2026 05:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL