GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — wayland support by catilac · Pull Request #1337 · processing/processing4

Conversation

@catilac

@catilac catilac commented Nov 20, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Addresses #1305

I still need to add support for X11. But can do that in a later PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tychedelia and others added 7 commits November 11, 2025 12:48
@tychedelia
Implement basic rendering flow
c39fb34
@tychedelia
Fix naming.
c198e16
@tychedelia
Actually fix rename.
42a1928
@catilac
Add display_handle argument to create_surface
1fbaaea
@catilac
Add support for wayland wm
7286377
@catilac
Update PWebGPU to pass a display handle
6dbbfde
@catilac
Pass display pointer in wayland
f84f52e
@catilac
catilac requested a review from tychedelia November 20, 2025 15:01
catilac
catilac commented Nov 20, 2025
View reviewed changes
Comment thread core/src/processing/webgpu/PSurfaceGLFW.java
Comment on lines +135 to +139
// TODO: Currently unsupported
return 0;
} else if (Platform.get() == Platform.WINDOWS) {
// TODO: Currently unsupported
return 0;

@catilac catilac Nov 20, 2025

Copy link
Copy Markdown
Collaborator Author

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.

wasn't sure what to do here since we don't use display handle on MacOS and windows yet.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
catilac
catilac commented Nov 20, 2025
View reviewed changes
Comment thread core/src/processing/webgpu/PSurfaceGLFW.java
Comment on lines +141 to +142
// TODO: need to check if x11 or wayland
return GLFWNativeWayland.glfwGetWaylandDisplay();

@catilac catilac Nov 20, 2025

Copy link
Copy Markdown
Collaborator Author

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 think i'll add x11 to this if we can test in the short term. otherwise it could go in another PR.
but happy to just do it here as well. i think i just have to check for a null pointer for Wayland or X11.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
catilac
catilac commented Nov 20, 2025
View reviewed changes
Comment thread libProcessing/renderer/src/lib.rs
Comment on lines -135 to +136
let window = AppKitWindowHandle::new(std::ptr::NonNull::new(ns_view_ptr).unwrap());
let window = AppKitWindowHandle::new(NonNull::new(ns_view_ptr).unwrap());

@catilac catilac Nov 20, 2025

Copy link
Copy Markdown
Collaborator Author

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.

@tychedelia from a rust stylistic point of view, do we like removing namespacing? or better to keep it in the context of a larger program?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
catilac
catilac commented Nov 20, 2025
View reviewed changes
Comment thread libProcessing/renderer/src/lib.rs
Comment on lines +185 to +189
let window_handle_ptr = unsafe { NonNull::new_unchecked(window_handle as *mut c_void) };
let window = WaylandWindowHandle::new(window_handle_ptr);

let display_handle_ptr = unsafe { NonNull::new_unchecked(display_handle as *mut c_void) };
let display = WaylandDisplayHandle::new(display_handle_ptr);

@catilac catilac Nov 20, 2025

Copy link
Copy Markdown
Collaborator Author

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 should add a TODO here for X11 as well. But happy I figured out how to do this!~

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@catilac
catilac force-pushed the 1305-wayland-support branch from 511a147 to f84f52e Compare November 21, 2025 17:57
@catilac catilac mentioned this pull request Nov 24, 2025
Wayland Support #1343
Merged
@catilac

catilac commented Nov 24, 2025

Copy link
Copy Markdown
Collaborator Author

Closing this since the work has been moved to:
#1343
processing/libprocessing#3

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@catilac catilac closed this Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tychedelia tychedelia Awaiting requested review from tychedelia

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@catilac @tychedelia
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.