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

wayland: Add support for the wp_primary_selection protocol #670

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

Drakulix
Copy link
Member

No description provided.

@Drakulix Drakulix requested review from elinorbgr and PolyMeilex July 15, 2022 10:26
@Drakulix Drakulix force-pushed the feature/primary_selection branch 6 times, most recently from 2125a22 to 54bb9db Compare July 18, 2022 15:52
@codecov-commenter
Copy link

Codecov Report

Merging #670 (54bb9db) into master (458c7d5) will decrease coverage by 0.69%.
The diff coverage is 4.22%.

@@            Coverage Diff             @@
##           master     #670      +/-   ##
==========================================
- Coverage   31.31%   30.61%   -0.70%     
==========================================
  Files          84       88       +4     
  Lines       14110    14462     +352     
==========================================
+ Hits         4418     4428      +10     
- Misses       9692    10034     +342     
Flag Coverage Δ
wlcs-core 28.18% <4.22%> (-0.64%) ⬇️
wlcs-output 10.33% <4.22%> (-0.19%) ⬇️
wlcs-pointer-input 30.23% <4.22%> (-0.69%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/wayland/compositor/handlers.rs 39.14% <ø> (ø)
src/wayland/data_device/device.rs 0.00% <ø> (ø)
src/wayland/data_device/mod.rs 9.60% <ø> (ø)
src/wayland/data_device/source.rs 0.00% <ø> (ø)
src/wayland/dmabuf/dispatch.rs 0.00% <ø> (ø)
src/wayland/dmabuf/mod.rs 1.61% <0.00%> (ø)
src/wayland/mod.rs 60.00% <ø> (ø)
src/wayland/output/handlers.rs 41.53% <ø> (ø)
src/wayland/primary_selection/device.rs 0.00% <0.00%> (ø)
src/wayland/primary_selection/seat_data.rs 0.00% <0.00%> (ø)
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 38d41e4...54bb9db. Read the comment docs.

set_data_device_focus(&dh, seat, focus)
seat.add_keyboard(XkbConfig::default(), 200, 25, move |seat, surface| {
let focus = surface.and_then(|s| dh.get_client(s.id()).ok());
let focus2 = surface.and_then(|s| dh.get_client(s.id()).ok());
Copy link
Member

Choose a reason for hiding this comment

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

I guess we could add a Resource::client() method yeah

@Drakulix Drakulix force-pushed the feature/primary_selection branch from 54bb9db to 6be9a9c Compare July 19, 2022 12:32
@Drakulix Drakulix merged commit c4a9945 into master Jul 19, 2022
@Drakulix Drakulix deleted the feature/primary_selection branch July 19, 2022 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants