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

Set cursor to left_ptr when mouse is over a notification on wayland #903

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

GorrillaRibs
Copy link
Contributor

As in mako here: emersion/mako@85a3e38

Currently (on wayland) the cursor remains what it was when the mouse enters the notification window (i.e. from a terminal or a text entry box it'll be a vertical bar), this fixes that.

Code is taken from mako (which used to have the same issue) and adapted a little to fit dunst.

@codecov-commenter
Copy link

codecov-commenter commented Sep 10, 2021

Codecov Report

Merging #903 (c95b16b) into master (3055efd) will decrease coverage by 0.29%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #903      +/-   ##
==========================================
- Coverage   60.50%   60.21%   -0.30%     
==========================================
  Files          39       39              
  Lines        6228     6258      +30     
==========================================
  Hits         3768     3768              
- Misses       2460     2490      +30     
Flag Coverage Δ
unittests 60.21% <0.00%> (-0.30%) ⬇️

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

Impacted Files Coverage Δ
src/wayland/wl.c 0.00% <0.00%> (ø)

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 3055efd...c95b16b. Read the comment docs.

Copy link
Member

@fwsmit fwsmit left a comment

Choose a reason for hiding this comment

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

Thanks for porting this patch. I've got a few style comments, but other than that it looks good

config.mk Outdated Show resolved Hide resolved
src/wayland/wl.c Show resolved Hide resolved
src/wayland/wl.c Outdated Show resolved Hide resolved
src/wayland/wl.h Outdated Show resolved Hide resolved
@GorrillaRibs
Copy link
Contributor Author

I think I've fixed everything brought up, but I haven't really used pull requests on github before, so I might've missed something - please let me know if there's any issues!

@fwsmit
Copy link
Member

fwsmit commented Sep 13, 2021

@GorrillaRibs Looks great! If you could squash the commits into the first one I'll merge the PR.

@GorrillaRibs
Copy link
Contributor Author

Done!

@fwsmit fwsmit merged commit 91c6e93 into dunst-project:master Sep 17, 2021
@fwsmit
Copy link
Member

fwsmit commented Sep 17, 2021

Thank you :)

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

3 participants