You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
When building with -tags wayland, the window.Resize() function does not seem to work like it should. Resulting in the window being spawned in at it's minimum size. This seems to be consistent. When disabling resizing with window.SetFixedSize(true) the window size seems to be correct, but the contents stay at their minimum size. Building without the wayland tag produces the correct results.
Not sure if it's related but building for wayland throws this error:
In file included from ../../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/c_glfw_lin.go:10:
../../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/wl_window.c:29:9: warning: "_GNU_SOURCE" redefined
29 | #define _GNU_SOURCE
| ^~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
How to reproduce
Create a new window object
Resize the window with the Resize function. e.g. window.Resize(fyne.NewSize(600, 400))
Built for X11 and for Wayland
Run both binaries and compare the results
Screenshots
First row: x11 and wayland build without setting a fixed size
Second row: x11 and wayland build with a fixed size
All builds use window.Resize(fyne.NewSize(600, 400))
Example code
a := fyne.CurrentApp()
w := a.NewWindow("anything")
// w.SetFixedSize(true)
w.Resize(fyne.NewSize(600, 400))
w.ShowAndRun()
Fyne version
2.5.4
Go compiler version
1.23.4
Operating system and version
Fedora Linux Asahi Remix 41 (KDE Plasma) aarch64
Additional Information
Let me know if I need to provide more examples. Happy to help!
The text was updated successfully, but these errors were encountered:
Checklist
Describe the bug
When building with
-tags wayland
, thewindow.Resize()
function does not seem to work like it should. Resulting in the window being spawned in at it's minimum size. This seems to be consistent. When disabling resizing withwindow.SetFixedSize(true)
the window size seems to be correct, but the contents stay at their minimum size. Building without the wayland tag produces the correct results.Not sure if it's related but building for wayland throws this error:
How to reproduce
window.Resize(fyne.NewSize(600, 400))
Screenshots
First row: x11 and wayland build without setting a fixed size
![Image](https://private-user-images.githubusercontent.com/23398694/411634323-4d16712f-5760-49f0-8e23-274271cc5563.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODYzMzgsIm5iZiI6MTczOTY4NjAzOCwicGF0aCI6Ii8yMzM5ODY5NC80MTE2MzQzMjMtNGQxNjcxMmYtNTc2MC00OWYwLThlMjMtMjc0MjcxY2M1NTYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA2MDcxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxMmYwZjY3NDM2MmFlYjk0NzBlZDQzOWI1NmJjMmMyYThiMTMyZWY2ODFhN2ExNDU1MzNlOTllZDQzZmIxYTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TVWmfIDUR3tR3CUr-zh8uyRlOXzs7JsUK3kHQK_M29g)
Second row: x11 and wayland build with a fixed size
All builds use
window.Resize(fyne.NewSize(600, 400))
Example code
Fyne version
2.5.4
Go compiler version
1.23.4
Operating system and version
Fedora Linux Asahi Remix 41 (KDE Plasma) aarch64
Additional Information
Let me know if I need to provide more examples. Happy to help!
The text was updated successfully, but these errors were encountered: