[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:09 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       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.

commit 536272e869ea5472a319a7368009f3b4f4051095
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 3643974..3a4764b 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -3236,7 +3236,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