From aa050e5eca6e7720c355ccd24ad6ca6c1068ff3c Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 20 Mar 2026 22:01:08 -0400 Subject: themes: fix rounded corners not showing without compositor When compositing is disabled, notifications have a rounded shape mask applied but it's not redrawn. This change queues a redraw after applying the shape region so the notification shows rounded corners. Fixes #98 --- src/themes/coco/coco-theme.c | 1 + src/themes/nodoka/nodoka-theme.c | 1 + src/themes/slider/theme.c | 1 + 3 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index ff76d52..b131283 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -249,6 +249,7 @@ update_shape_region (cairo_surface_t *surface, windata->last_width = windata->width; windata->last_height = windata->height; + gtk_widget_queue_draw (GTK_WIDGET (windata->win)); } static void diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index d478862..8600d60 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -594,6 +594,7 @@ update_shape_region (cairo_surface_t *surface, windata->last_width = windata->width; windata->last_height = windata->height; + gtk_widget_queue_draw (GTK_WIDGET (windata->win)); } static void diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c index 4552af0..7672a8d 100644 --- a/src/themes/slider/theme.c +++ b/src/themes/slider/theme.c @@ -211,6 +211,7 @@ update_shape_region (cairo_surface_t *surface, windata->last_width = windata->width; windata->last_height = windata->height; + gtk_widget_queue_draw (GTK_WIDGET (windata->win)); } static void paint_window (GtkWidget *widget, -- cgit v1.2.1