-
Notifications
You must be signed in to change notification settings - Fork 913
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
Upgrade to smithay-client-toolkit 0.4 #671
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nitpicks, but it looks good overall 👍
How did you test it?
display: Arc::downgrade(&my_display), | ||
pending_wakeup: Arc::downgrade(&my_pending_wakeup), | ||
}, | ||
}.receive(event, registry) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't the SeatManager
be built once and then captured by the closure? This would reduce the number of clone()
.
@@ -93,7 +92,7 @@ impl EventsLoopProxy { | |||
// Update the `EventsLoop`'s `pending_wakeup` flag. | |||
wakeup.store(true, Ordering::Relaxed); | |||
// Cause the `EventsLoop` to break from `dispatch` if it is currently blocked. | |||
let _ = display.sync(); | |||
let _ = display.sync(|callback| {callback.implement(|_, _| {}, ())}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the { .. }
braces are not needed here.
keyboard: None, | ||
touch: None, | ||
events_loop_proxy: self.events_loop_proxy.clone(), | ||
})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand the need to put the SeatData
into an Arc<Mutex<_>>
, given the arc is never cloned... ?
CHANGELOG.md
if knowledge of this change could be valuable to users (Just about the decorations change)Upgrades to smithay-client-toolkit to version 4.0, biggest changes are
Now uses wayland 0.21 (doesn't use pure rust implementation because of c lib dependency that can hopefully be removed in the future)
Better 'ConceptFrame' for decorations which looks more visual appealing then 'BasicFrame'
Window titles will now be displayed in the header of the window
Fix wayland key repetition when keyboard loses focus
Fixes #657