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

Add xkbcommon-example #921

Merged
merged 1 commit into from
Mar 3, 2024
Merged

Add xkbcommon-example #921

merged 1 commit into from
Mar 3, 2024

Conversation

psychon
Copy link
Owner

@psychon psychon commented Mar 2, 2024

This example shows how to use xkbcommon together with x11rb's XCBConnection. The program prints key presses and releases and it also detects backspace. It does not really do anything useful, but perhaps it can still help people...?

Disclaimer: I don't really know that much about XKB and xkbcommon.

I originally wrote this program in the following comment: #782 (comment)

This example shows how to use xkbcommon together with x11rb's
XCBConnection. The program prints key presses and releases and it also
detects backspace. It does not really do anything useful, but perhaps it
can still help people...?

Disclaimer: I don't really know that much about XKB and xkbcommon.

I originally wrote this program in the following comment:
#782 (comment)

Signed-off-by: Uli Schlachter <psychon@znc.in>
Copy link

codecov bot commented Mar 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 131 lines in your changes are missing coverage. Please review.

Project coverage is 13.06%. Comparing base (397930b) to head (d030ec3).

Files Patch % Lines
xkbcommon-example/src/main.rs 0.00% 131 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #921      +/-   ##
==========================================
- Coverage   13.07%   13.06%   -0.02%     
==========================================
  Files         190      191       +1     
  Lines      136537   136668     +131     
==========================================
+ Hits        17859    17860       +1     
- Misses     118678   118808     +130     
Flag Coverage Δ
tests 13.06% <0.00%> (-0.02%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@notgull notgull 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 to me!

@mergify mergify bot merged commit 08ce9fa into master Mar 3, 2024
21 of 23 checks passed
@mergify mergify bot deleted the xkbcommon-example branch March 3, 2024 05:31
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.

None yet

2 participants