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

Cannot programmatically resize on Wayland since 0.28.0 #2753

Closed
torokati44 opened this issue Mar 30, 2023 · 4 comments
Closed

Cannot programmatically resize on Wayland since 0.28.0 #2753

torokati44 opened this issue Mar 30, 2023 · 4 comments
Labels
B - bug Dang, that shouldn't have happened DS - wayland

Comments

@torokati44
Copy link
Contributor

Take this simple application (based on this example: https://github.com/parasyte/pixels/tree/main/examples/minimal-winit):
https://gist.github.com/torokati44/e21a9576966395d7affd806f5c236a75

Compile it with Cargo.toml:

[package]
name = "winitbug"
version = "0.1.0"
edition = "2021"

[dependencies]
winit="0.27.5" # !!!
winit_input_helper="0.13.0" # !!!

pixels="0.12.0"
error-iter="0.4.1"
log="0.4.17"
env_logger="0.10.0"

When the mouse cursor is moved into the top left 20x20 area, the window resizes itself to 100x100, and the box will only bounce within this smaller window.

This works as intended with the versions given above.

However, when upgrading to:

[dependencies]
winit="0.28.0"
winit_input_helper="0.14.0"

I get this instead:

image

Manually resizing the window (or even just taking focus away from it) instantly fixes the surface size.

Both dependency versions work as intended on XWayland.

System info:

Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.7-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 31,2 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT

@torokati44
Copy link
Contributor Author

Possibly related: #2499

@torokati44
Copy link
Contributor Author

FWIW the regression doesn't occur in Weston, so this might be a KDE (kwin) bug... :|
But still, it worked in 0.27.5.

@kchibisov
Copy link
Member

See #2676 .

@kchibisov kchibisov added B - bug Dang, that shouldn't have happened DS - wayland labels Apr 1, 2023
@kchibisov
Copy link
Member

Fixed in 2496098

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - wayland
Development

No branches or pull requests

2 participants