Skip to content

wayland: fix dunst crashing when sending notification with no outputs enabled#930

Merged
fwsmit merged 2 commits into
dunst-project:masterfrom
fwsmit:fix/wl_no_output_crash
Oct 12, 2021
Merged

wayland: fix dunst crashing when sending notification with no outputs enabled#930
fwsmit merged 2 commits into
dunst-project:masterfrom
fwsmit:fix/wl_no_output_crash

Conversation

@fwsmit

@fwsmit fwsmit commented Oct 4, 2021

Copy link
Copy Markdown
Member

This commit does mess up the foreign toplevel support, however. So no fullscreen detection anymore. I'll fix that later.

Fixes #888

Edit: I also fixed the fullscreen detection

… enabled

This commit does mess up the foreign toplevel support, however. No
fullscreen detection anymore
@9ary

9ary commented Oct 9, 2021

Copy link
Copy Markdown

I can confirm this fixes the crash for me.

@fwsmit fwsmit force-pushed the fix/wl_no_output_crash branch from d2b4930 to d24d2a7 Compare October 12, 2021 10:18
@codecov-commenter

codecov-commenter commented Oct 12, 2021

Copy link
Copy Markdown

Codecov Report

Merging #930 (d24d2a7) into master (9e712ae) will decrease coverage by 0.56%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #930      +/-   ##
==========================================
- Coverage   60.91%   60.35%   -0.57%     
==========================================
  Files          39       40       +1     
  Lines        6355     6414      +59     
==========================================
  Hits         3871     3871              
- Misses       2484     2543      +59     
Flag Coverage Δ
unittests 60.35% <0.00%> (-0.57%) ⬇️

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

Impacted Files Coverage Δ
src/wayland/foreign_toplevel.c 0.00% <0.00%> (ø)
src/wayland/wl.c 0.00% <0.00%> (ø)
...gn-toplevel-management-unstable-v1-client-header.h 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 9e712ae...d24d2a7. Read the comment docs.

This is mostly taken from examples/foreign-toplevel.c of wlroots.
@fwsmit fwsmit force-pushed the fix/wl_no_output_crash branch from d24d2a7 to 0671c09 Compare October 12, 2021 10:31
@fwsmit

fwsmit commented Oct 12, 2021

Copy link
Copy Markdown
Member Author

I can confirm this fixes the crash for me.

Thanks for testing, I'll merge it then

@fwsmit fwsmit merged commit a9d1330 into dunst-project:master Oct 12, 2021
@fwsmit fwsmit deleted the fix/wl_no_output_crash branch October 12, 2021 10:33
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.

segfault when receiving notifications while screen is off (Wayland)

3 participants