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

Decouple clipboard from fyne.Window #4418

Open
2 tasks done
Jacalz opened this issue Nov 23, 2023 · 2 comments
Open
2 tasks done

Decouple clipboard from fyne.Window #4418

Jacalz opened this issue Nov 23, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers refactor Issues related to refactoring code.

Comments

@Jacalz
Copy link
Member

Jacalz commented Nov 23, 2023

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

The clipboard in GLFW was previously tied to the window. This is no longer the case so I think it seems strange to have a window.Clipboard() method when clipboards generally are per app or per system and not per window.

See #4417 for step one.

Is it possible to construct a solution with the existing API?

Yeah. We can move the clipboard struct anywhere we'd like.

Describe the solution you'd like to see.

Add a app.Clipboard() method and deprecate the one on the window.

@Jacalz Jacalz added enhancement New feature or request refactor Issues related to refactoring code. good first issue Good for newcomers labels Nov 23, 2023
@Jacalz Jacalz mentioned this issue Nov 23, 2023
3 tasks
@Jacalz Jacalz changed the title Decouple clipboard from Window struct Decouple clipboard from fyne.Window Nov 23, 2023
@andydotxyz
Copy link
Member

This will make some system tray people happy as well, because we can then use clipboard without having any windows created.

@Jacalz Jacalz self-assigned this Nov 27, 2023
@Jacalz
Copy link
Member Author

Jacalz commented Nov 27, 2023

Cool. I'll assign myself and look into implementing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers refactor Issues related to refactoring code.
Projects
None yet
Development

No branches or pull requests

2 participants