diff --git a/xfce4-notifyd/xfce-notify-window.c b/xfce4-notifyd/xfce-notify-window.c index c3fcdd8..959ebea 100644 --- a/xfce4-notifyd/xfce-notify-window.c +++ b/xfce4-notifyd/xfce-notify-window.c @@ -375,6 +375,13 @@ xfce_notify_window_draw (GtkWidget *widget, GtkAllocation allocation; GdkScreen *screen; GtkCssProvider *provider; + GtkStateFlags state; + XfceNotifyWindow *window = XFCE_NOTIFY_WINDOW(widget); + + state = GTK_STATE_FLAG_NORMAL; + /* Load the css style information for hover aka prelight */ + if (window->mouse_hover) + state = GTK_STATE_FLAG_PRELIGHT; context = gtk_widget_get_style_context (widget); gtk_widget_get_allocation (widget, &allocation); @@ -395,6 +402,7 @@ xfce_notify_window_draw (GtkWidget *widget, cairo_fill (cr); /* Then render the background and border based on the Gtk theme */ + gtk_style_context_set_state(context, state); gtk_render_background (context, cr, allocation.x, allocation.y, allocation.width, allocation.height); gtk_render_frame (context, cr, allocation.x, allocation.y, allocation.width, allocation.height); @@ -1037,4 +1045,4 @@ xfce_notify_window_closed(XfceNotifyWindow *window, && reason <= XFCE_NOTIFY_CLOSE_REASON_UNKNOWN); g_signal_emit(G_OBJECT(window), signals[SIG_CLOSED], 0, reason); -} +} \ No newline at end of file