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

Upgrade to smithay-client-toolkit 0.4 #671

Merged
merged 2 commits into from
Oct 14, 2018

Conversation

trimental
Copy link
Contributor

  • Tested on all platforms changed
  • Added an entry to 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

Copy link
Contributor

@elinorbgr elinorbgr left a 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)
Copy link
Contributor

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(|_, _| {}, ())});
Copy link
Contributor

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(),
}));
Copy link
Contributor

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... ?

src/platform/linux/wayland/keyboard.rs Show resolved Hide resolved
@elinorbgr
Copy link
Contributor

For the record, here is how alacritty looks like in weston with the new decorations:

alacritty-new-decorations

@francesca64 francesca64 merged commit 50008df into rust-windowing:master Oct 14, 2018
@trimental trimental deleted the sctk-upgrade branch October 15, 2018 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants