[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#714066: marked as done ([xfce4-panel] panel autohide broken by action buttons plugin (menu mode))



Your message dated Thu, 1 Dec 2022 11:29:16 +0500
with message-id <CANeoM1FUW0hm6+HKo4_vkD0soduuXW7H=oJO4LpwSY6zcJu6ZQ@mail.gmail.com>
and subject line Re: [xfce4-panel] panel autohide broken by action buttons plugin (menu mode)
has caused the Debian Bug report #714066,
regarding [xfce4-panel] panel autohide broken by action buttons plugin (menu mode)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
714066: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=714066
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: xfwm4
Version: 4.10.1-1
Severity: normal
Tags: patch

Dear maintainer,

when I add action buttons to an autohiding panel and set that plugin
to the "menu" mode, it breaks the panel autohide whenever the plugin
button is clicked and actions menu pop up.

I fixed this issue long time ago, but I probably forgot to send it
anywhere as it is not included in 4.10.1 and I cannot find a
corresponding bug report. I will link here a upstream bug report ASAP I
find it or fill new one.

Regards,
Petr
From 2b03d8ed2f33e125d08908ff6122db542fba773f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20Gajd=C5=AF=C5=A1ek?= <gajdusek.petr@centrum.cz>
Date: Sun, 14 Oct 2012 07:49:28 +0200
Subject: [PATCH] Actions: Fix panel autohide broken by the actions menu (bug
 #8960)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Check the button toggle status in actions_plugin_menu() and avoid to popup
the menu if the button is not pressed.

Signed-off-by: Petr Gajdůšek <gajdusek.petr@centrum.cz>
---
 plugins/actions/actions.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c
index 53ff8d0..7e24806 100644
--- a/plugins/actions/actions.c
+++ b/plugins/actions/actions.c
@@ -1248,6 +1248,11 @@ actions_plugin_menu (GtkWidget     *button,
 
   panel_return_if_fail (XFCE_IS_ACTIONS_PLUGIN (plugin));
 
+  // do not popup the menu if the button is being toggled off
+  if (button != NULL
+      && !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (button)))
+    return;
+
   if (plugin->menu == NULL)
     {
       plugin->menu = gtk_menu_new ();
-- 
1.7.10.4


--- End Message ---
--- Begin Message ---
Source: xfce4-panel
Source-Version: 4.13.0-1

--- End Message ---

Reply to: