Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Does not support X11 forwarding? #87

Open
golanguage opened this issue Apr 21, 2023 · 2 comments
Open

Does not support X11 forwarding? #87

golanguage opened this issue Apr 21, 2023 · 2 comments
Labels
backend:x11 docs Improvements or additions to documentation

Comments

@golanguage
Copy link

Using MobaXter or vcxsrv as X server on a Win10.
Run some examples from Ubuntu 22.04, the window is balck at all.

image

:~/proj/rust/glazier$ cargo r --example wgpu-triangle
    Finished dev [unoptimized + debuginfo] target(s) in 0.19s
     Running `target/debug/examples/wgpu-triangle`
[src/backend/x11/application.rs:673] ev = MapNotify(
    MapNotifyEvent {
        response_type: 19,
        sequence: 197,
        event: 2097154,
        window: 2097154,
        override_redirect: false,
    },
)
[src/backend/x11/application.rs:673] ev = ReparentNotify(
    ReparentNotifyEvent {
        response_type: 149,
        sequence: 198,
        event: 2097154,
        window: 2097154,
        parent: 197,
        x: 138,
        y: 161,
        override_redirect: true,
    },
)

@jneem
Copy link
Collaborator

jneem commented Apr 21, 2023

I think all our examples use vulkan for rendering, and my understanding is that vulkan intentionally does not support x11 forwarding.

However, glazier itself does not impose any specific drawing backend. You could use glazier with cairo, or maybe opengl, and it should support x11 forwarding.

@golanguage
Copy link
Author

I think all our examples use vulkan for rendering, and my understanding is that vulkan intentionally does not support x11 forwarding.

However, glazier itself does not impose any specific drawing backend. You could use glazier with cairo, or maybe opengl, and it should support x11 forwarding.

Thanks for your quick response. It's just that I'm not familiar with how to use these tech stacks. It would be nice to have an example of this. I think it should be useful , e.g. for WSL user.

@jneem jneem added backend:x11 docs Improvements or additions to documentation labels Apr 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backend:x11 docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants