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: Support xdg-shell as a fallback #1433

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pslldq
Copy link

@pslldq pslldq commented Jan 10, 2025

Support the xdg-shell wayland protocol as a fallback in case the wlr-layer-shell-unstable-v1 protocol is not present. This allows running dunst on wayland compositors not supporting the layer shell protocol.

Note that the xdg-shell protocol doesn't allow dunst to specify where it should be displayed on the screen. Therefore it is only chosen, when the layer-shell protocol is not available.

Currently this allows dunst to also run on the Gnome shell (using a different session D-Bus) and weston.

Update the xdg-shell client protocol to the one included in
wayland-protocols 1.39 .

This prevent the following error when using the xdg-shell protocol:
  interface 'xdg_toplevel' has no event 3

It was updated using the relevant wayland-scanner commands from
the wayland-protocols make target in a Debian Buster container
against the xdg-shell.xml file included in version 1.39.
@pslldq pslldq force-pushed the supportxdgshell branch 3 times, most recently from 0aed2b0 to a1bae20 Compare January 10, 2025 11:36
Support the xdg-shell wayland protocol as a fallback in case the
wlr-layer-shell-unstable-v1 protocol is not present. This allows running
dunst on wayland compositors not supporting the layer shell protocol.

Note that the xdg-shell protocol doesn't allow dunst to specify where
it should be displayed on the screen. Therefore it is only chosen, when
the layer-shell protocol is not available.
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

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

Project coverage is 64.57%. Comparing base (5408dfc) to head (e293572).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/wayland/wl.c 0.00% 89 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1433      +/-   ##
==========================================
- Coverage   65.32%   64.57%   -0.75%     
==========================================
  Files          50       51       +1     
  Lines        8763     8864     +101     
  Branches     1034     1046      +12     
==========================================
  Hits         5724     5724              
- Misses       3039     3140     +101     
Flag Coverage Δ
unittests 64.57% <0.00%> (-0.75%) ⬇️

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.

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.

2 participants