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

Password entry shifts window on wlroots #5172

Open
2 tasks done
Arzumify opened this issue Sep 29, 2024 · 3 comments
Open
2 tasks done

Password entry shifts window on wlroots #5172

Arzumify opened this issue Sep 29, 2024 · 3 comments
Labels
unverified A bug that has been reported but not verified

Comments

@Arzumify
Copy link

Checklist

  • 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

On wlroots based WMs, using the password revealer in a PasswordEntry will shift the window up by about 10 pixels

How to reproduce

  1. Create a password revealer
  2. Run the app on a wlroots based DE, like wayfire
  3. Use the password revealer

Screenshots

LostInTranslation.mp4

Example code

package main

import (
"fmt"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)

func main() {
signupApp := app.New()
signupWindow := signupApp.NewWindow("Login")
signupWindow.Resize(fyne.NewSize(800, 600))

// Create the login form
username := widget.NewEntry()
username.SetPlaceHolder("Username")
password := &widget.Entry{Password: true}
password.SetPlaceHolder("Password")

// Add them all to the form
form := &widget.Form{
	Items: []*widget.FormItem{ // we can specify items in the constructor
		{Text: "Username", Widget: username},
		{Text: "Password", Widget: password}},
	OnSubmit: func() { // optional, handle form submission
		fmt.Println("Username:", username.Text)
		fmt.Println("Password:", password.Text)
		signupWindow.Close()
	},
}

signupWindow.SetContent(form)
signupWindow.ShowAndRun()

}

Fyne version

v2.5.1

Go compiler version

1.23.1

Operating system and version

Linux 6.9.12-200.fc40.x86_64

Additional Information

Tested on Wayfire DE

@Arzumify Arzumify added the unverified A bug that has been reported but not verified label Sep 29, 2024
@Arzumify
Copy link
Author

Temporary fix is to use GNOME, which I'm not a fan of :P

@andydotxyz
Copy link
Member

Oh man that is crazy - not only does that button not control windows but we have no window move code that I can think of in Fyne!

Does the same happen if you skip the Resize() call?

@Arzumify
Copy link
Author

Arzumify commented Oct 1, 2024

Oh man that is crazy - not only does that button not control windows but we have no window move code that I can think of in Fyne!

Does the same happen if you skip the Resize() call?

I'll test it later, I'm at work right now
Should be free at about 6 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants