Ax9D / pw-viz

Pipewire graph editor written in Rust. WIP⚠️
GNU General Public License v3.0
230 stars 14 forks source link

Arch KDE window is extremely small #2

Closed Quackdoc closed 2 years ago

Quackdoc commented 2 years ago

Running from terminal crashes the terminal, running from gdb shows that the app is running. but no window is visible.

EDIT: Window is extremely small when it opens

Ax9D commented 2 years ago

Are you on Wayland?

Quackdoc commented 2 years ago

That is correct

Ax9D commented 2 years ago

That might have to do with winit, the windowing library i'm using, which is known to have buggy support for Wayland. As a workaround, you can force it to use XWayland by setting the environment variable: WINIT_UNIX_BACKEND=x11

https://wiki.archlinux.org/title/Wayland#GUI_libraries https://github.com/rust-windowing/winit/issues/305

Quackdoc commented 2 years ago

Actually, It turns out the window does open, I had the same issue doing what you said, it turns out it is opening a window that is 3x8 pixels on a 4k display, it happens in x11 too. when I close and open the app same thing

I've changed the issue to better reflect what is happening

jansol commented 2 years ago

Alacritty is affected by the same problem so it's either a winit or plasma issue. I started running into it after a recent plasma update. You can work around it by right-clicking the application in the panel and choosing Resize, then just move the cursor until you have a usable size and click to finish resizing.

Other than that the Wayland backend has worked fine for me so far.

jansol commented 2 years ago

This has been worked around in Plasma 2.23.4. A proper fix is already in winit 0.26.0, but the PR to use that in egui (emilk/egui#930) has not landed yet at the time of writing.

Ax9D commented 2 years ago

I have updated to egui 0.16.0 which includes this fix

Quackdoc commented 2 years ago

only tested briefly but it works fine for me