Skip to content

egui-winit: Use RawDisplayHandle for smithay clipboard init#2914

Merged
emilk merged 1 commit intoemilk:masterfrom
talonvoice:patch-3
Apr 19, 2023
Merged

egui-winit: Use RawDisplayHandle for smithay clipboard init#2914
emilk merged 1 commit intoemilk:masterfrom
talonvoice:patch-3

Conversation

@lunixbochs
Copy link
Contributor

I believe this addresses #2912

Comment on lines +32 to +33
/// The returned `Clipboard` must not outlive the input `_event_loop`.
pub fn new<T>(_event_loop: &EventLoopWindowTarget<T>) -> Self {
pub fn new(_display_target: impl HasRawDisplayHandle) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc comment should be updated to refer to the new parameter name

Comment on lines +90 to +91
/// The returned `State` must not outlive the input `_event_loop`.
pub fn new<T>(event_loop: &EventLoopWindowTarget<T>) -> Self {
pub fn new(display_target: impl HasRawDisplayHandle) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but need cargo clippy

@lunixbochs
Copy link
Contributor Author

addressed the inline comments

@emilk
Copy link
Owner

emilk commented Apr 19, 2023

tip: configure your editor to run cargo fmt on save

@emilk emilk added eframe Relates to epi and eframe egui-winit porblems related to winit and removed eframe Relates to epi and eframe labels Apr 19, 2023
@emilk emilk merged commit ede3ded into emilk:master Apr 19, 2023
@emilk
Copy link
Owner

emilk commented Apr 19, 2023

thanks!

@emilk emilk changed the title use RawDisplayHandle for smithay clipboard init egui-winit: Use RawDisplayHandle for smithay clipboard init Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

egui-winit porblems related to winit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants