[Xfce4-commits] [xfce/xfce4-panel] 01/01: plugins: Fix enter/leave opacity w/o compositing (Bug #14577)

noreply at xfce.org noreply at xfce.org
Fri Jan 10 23:48:43 CET 2020


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       x   f   c   e   -   4   .   1   4   
   in repository xfce/xfce4-panel.

commit f6e855143571530b452ae40bc3b01a4fcb82256d
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Jan 10 23:40:35 2020 +0100

    plugins: Fix enter/leave opacity w/o compositing (Bug #14577)
    
    Before this patch the enter and leave opacity values were applied to
    external panel plugins and the systray even with compositing disabled,
    rendering them as black boxes.
---
 panel/panel-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel/panel-window.c b/panel/panel-window.c
index 63776b3..933749b 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -3047,7 +3047,7 @@ panel_window_set_povider_info (PanelWindow *window,
           /* unset the background (PROVIDER_PROP_TYPE_ACTION_BACKGROUND_UNSET) */
           panel_plugin_external_set_background_color (PANEL_PLUGIN_EXTERNAL (provider), NULL);
         }
-      if (base_window->leave_opacity != 1.0)
+      if (base_window->leave_opacity != 1.0 && base_window->is_composited)
         {
           panel_plugin_external_set_opacity (PANEL_PLUGIN_EXTERNAL (provider),
               base_window->leave_opacity);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list