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

Fix black srceen error in applauncher example (issue #98) #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ReStranger
Copy link

@Aylur
Copy link
Owner

Aylur commented Nov 19, 2024

please don't change the styling

@ReStranger
Copy link
Author

ReStranger commented Nov 19, 2024

sorry, it's my formater

@Aylur
Copy link
Owner

Aylur commented Nov 19, 2024

It is 4000 thousand because in my experience it can be any number and will still work as expected so I just chose a very high number so that it works on wide monitors too.
But if it can cause issue it should be calculated from the width of the monitor instead, or drop the this approach and just make it fullscreen.
The reason the window itself is only anchored to the top and bottom instead of all corners (making it fullscreen) is because on a fullscreen widget labels will span across the full width of the widget and you'd have to set wrap maxWidthChars={/*number*/} in order to wrap them, while with this current approach it setting a min-width on the window will essentially work as man-width that labels will obey and wrap automaically.

What compositor are you running on where it results in a black screen?

@calebstewart
Copy link

I am also seeing this behavior (commenting here in lieu of the closed issue). I'm using Hyprland. I have three 4K monitors connected w/ resolutions of 3840x2160 with 1.25x fractional scaling enabled. Hyprland version output, if it's helpful:

❯ Hyprland --version
Hyprland 0.45.0 built from branch main at commit a425fbebe4cf4238e48a42f724ef2208959d66cf  (version: bump to 0.45.0).
Date: 2024-11-09
Tag: v0.45.0, commits: a425fbebe4cf4238e48a42f724ef2208959d66cf
built against aquamarine 0.4.4


flags set:
debug

Changing the widthRequest to 400 does make the example work for me as well.

@Aylur
Copy link
Owner

Aylur commented Jan 23, 2025

does 9cadfed fix it for you? @ReStranger @calebstewart

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.

3 participants