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

Rust's winit windows not layouted (most of the time) #1704

Open
truchi opened this issue Dec 19, 2024 · 1 comment
Open

Rust's winit windows not layouted (most of the time) #1704

truchi opened this issue Dec 19, 2024 · 1 comment

Comments

@truchi
Copy link

truchi commented Dec 19, 2024

Describe the bug
I'm writing an app with winit. My window is (almost) never picked up by Amethyst. It floats (🤮), cannot be cycled through nor layouted. It's like it is invisible to Amethyst. A tenth of the time it works properly.

Applications:
My own baby. I see you have other issues involving winit: Alacritty and Zed are written in Rust so I guess they use winit or some fork.

To Reproduce
winit has an examples folder, you need cargo to run that.

Expected behavior
My window to be deliciously layouted ❤️

Screenshots
I don't want to trigger anyone with a screenshot of a floating window.

Versions:

  • macOS: 14.1.1 (23B81)
  • Amethyst: 0.20.0

Debug Info

❯ /Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info --include-apps
Version: 0.20.0 (108)

OS version: Version 14.1.1 (Build 23B81)

Screens:
	(0.0, 0.0, 1920.0, 1080.0) [(0.0, 0.0, 1920.0, 1080.0)]

Configuration:
window-max-count: 0
enables-layout-hud-on-space-change: 0
new-windows-to-main: 0
restore-layouts-on-launch: 1
floating-is-blacklist: 1
smart-window-margins: 1
screen-padding-right: 0
mod1: (
    option,
    shift
)
window-margins: 1
follow-space-thrown-windows: 1
screen-padding-top: 0
enables-layout-hud: 0
screen-padding-bottom: 0
use-canary-build: 0
float-small-windows: 0
window-margin-size: 2
ignore-menu-bar: 1
focus-follows-mouse: 0
floating: (
)
mod2: (
    option,
    shift,
    control
)
window-minimum-width: 0
screen-padding-left: 0
mouse-follows-focus: 0
window-minimum-height: 0
debug-layout-info: 0
window-resize-step: 5
layouts: (
    fullscreen,
    tall,
    wide
)

Manageable applications:
	Google Chrome (com.google.Chrome)
	Finder (com.apple.finder)
	Alacritty (org.alacritty)
	virus (<unknown bundle id>) // <--- My baby

Additional context
Sadly amethyst is/was a game engine in Rust world.

@truchi
Copy link
Author

truchi commented Dec 19, 2024

NEVERMIND: updating to 0.21.2 seemingly fixed it.

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

No branches or pull requests

1 participant