Comments (8)
For example, dunst and lxqt-notificationd don't have this problem on my machine.
Other applications are also rendered normally.
from eventd.
Do you use a compositing manager like compton?
If not, please try this patch:
diff --git a/plugins/nd/src/backend-xcb.c b/plugins/nd/src/backend-xcb.c
index 412641ca..e4b9f225 100644
--- a/plugins/nd/src/backend-xcb.c
+++ b/plugins/nd/src/backend-xcb.c
@@ -654,8 +654,11 @@ _eventd_nd_xcb_surface_shape(EventdNdSurface *self)
shape = cairo_xcb_surface_create_for_bitmap(context->xcb_connection, context->screen, shape_id, self->width, self->height);
cr = cairo_create(shape);
+ cairo_set_source_rgba(cr, 0, 0, 0, 0);
+ cairo_paint(cr);
cairo_set_source_rgba(cr, 1, 1, 1, 1);
self->context->nd->notification_shape(self->notification, cr);
+ cairo_fill(cr);
cairo_destroy(cr);
cairo_surface_destroy(shape);
from eventd.
Do you use a compositing manager like compton?
No, I use plain Openbox WM.
If not, please try this patch
It didn't help. No visible changes at all.
from eventd.
New patch:
diff --git a/plugins/nd/src/backend-xcb.c b/plugins/nd/src/backend-xcb.c
index 412641ca..76749b5b 100644
--- a/plugins/nd/src/backend-xcb.c
+++ b/plugins/nd/src/backend-xcb.c
@@ -654,8 +654,10 @@ _eventd_nd_xcb_surface_shape(EventdNdSurface *self)
shape = cairo_xcb_surface_create_for_bitmap(context->xcb_connection, context->screen, shape_id, self->width, self->height);
cr = cairo_create(shape);
+ cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
cairo_set_source_rgba(cr, 1, 1, 1, 1);
self->context->nd->notification_shape(self->notification, cr);
+ cairo_fill(cr);
cairo_destroy(cr);
cairo_surface_destroy(shape);
from eventd.
New patch
I tried the patch you've added initially, i.e.
diff --git a/plugins/nd/src/backend-xcb.c b/plugins/nd/src/backend-xcb.c
index 412641ca..5b871b35 100644
--- a/plugins/nd/src/backend-xcb.c
+++ b/plugins/nd/src/backend-xcb.c
@@ -654,8 +654,12 @@ _eventd_nd_xcb_surface_shape(EventdNdSurface *self)
shape = cairo_xcb_surface_create_for_bitmap(context->xcb_connection, context->screen, shape_id, self->width, self->height);
cr = cairo_create(shape);
+ cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
+ cairo_set_source_rgba(cr, 0, 0, 0, 0);
+ cairo_paint(cr);
cairo_set_source_rgba(cr, 1, 1, 1, 1);
self->context->nd->notification_shape(self->notification, cr);
+ cairo_fill(cr);
cairo_destroy(cr);
cairo_surface_destroy(shape);
And it fixed the problem for me. Let me try with the updated patch.
from eventd.
New patch
Updated patch, i.e.
diff --git a/plugins/nd/src/backend-xcb.c b/plugins/nd/src/backend-xcb.c
index 412641ca..76749b5b 100644
--- a/plugins/nd/src/backend-xcb.c
+++ b/plugins/nd/src/backend-xcb.c
@@ -654,8 +654,10 @@ _eventd_nd_xcb_surface_shape(EventdNdSurface *self)
shape = cairo_xcb_surface_create_for_bitmap(context->xcb_connection, context->screen, shape_id, self->width, self->height);
cr = cairo_create(shape);
+ cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
cairo_set_source_rgba(cr, 1, 1, 1, 1);
self->context->nd->notification_shape(self->notification, cr);
+ cairo_fill(cr);
cairo_destroy(cr);
cairo_surface_destroy(shape);
didn't help. No changes whatsoever.
from eventd.
Ok, pushed non-updated new patch as 977ba0e.
Thanks for testing.
from eventd.
Thank you very much for fixing this.
from eventd.
Related Issues (20)
- eventd: incorrectly uses /run directory in absence of XDG_RUNTIME_DIR env variable HOT 3
- Text wrapping HOT 1
- eventd-0.23.0 doesn't build with meson>=0.42.0 HOT 1
- How to start eventd properly HOT 1
- eventd-master doesn't build with meson-0.44.0 HOT 2
- systemd unit broken (eventd-git arch linux) HOT 6
- eventd-0.24.0 fails test - ERROR:../eventd-0.24.0/src/libnkutils/tests/token.c:972:_nk_token_list_tests_func: assertion failed (result == data->result): ("1,00000" == "1.00000") HOT 3
- Feature request: Moving bubbles HOT 3
- AUR build fails HOT 3
- Settings ignored HOT 4
- Image options in eventd.conf are ignored. HOT 17
- Unicode problems on NixOS (glibc 2.26 - 2.27 locales incompatibility) HOT 7
- Feature request: better queue control HOT 3
- Release tarballs don't contain submodules HOT 1
- libeventd-plugin pkgconfig file no longer contains `pluginsdir` HOT 1
- Placement issue with Sway HOT 1
- eventd/eventd-git 0.27.0-1 fails to build with meson 0.56.0-1 on Arch HOT 5
- Fails to build from source with Meson 0.63.0 HOT 1
- Port to libsoup3 API HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventd.