Skip to content
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

Arch KDE window is extremely small #2

Closed
Quackdoc opened this issue Nov 17, 2021 · 8 comments
Closed

Arch KDE window is extremely small #2

Quackdoc opened this issue Nov 17, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@Quackdoc
Copy link

Quackdoc commented Nov 17, 2021

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
Copy link
Owner

Ax9D commented Nov 17, 2021

Are you on Wayland?

@Quackdoc
Copy link
Author

Quackdoc commented Nov 17, 2021

That is correct

@Ax9D
Copy link
Owner

Ax9D commented Nov 17, 2021

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
rust-windowing/winit#305

@Ax9D Ax9D added the bug Something isn't working label Nov 17, 2021
@Quackdoc
Copy link
Author

Quackdoc commented Nov 17, 2021

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

@Quackdoc Quackdoc changed the title Doesn't spawn a window on Arch Kde Arch KDE window is extremely small Nov 17, 2021
@jansol
Copy link
Contributor

jansol commented Nov 18, 2021

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
Copy link
Contributor

jansol commented Dec 18, 2021

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 added a commit that referenced this issue Jan 2, 2022
Potential fix for #2
@Ax9D
Copy link
Owner

Ax9D commented Jan 2, 2022

I have updated to egui 0.16.0 which includes this fix

@Quackdoc
Copy link
Author

only tested briefly but it works fine for me

Ax9D added a commit that referenced this issue Nov 24, 2022
Potential fix for #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants