<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>506170</bug_id>
          
          <creation_ts>2025-06-25 16:15:56 +0000</creation_ts>
          <short_desc>Global menu widget doesn&apos;t work in single-button mode on X11</short_desc>
          <delta_ts>2025-08-06 16:10:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Global Menu widget</component>
          <version>6.4.1</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>HI</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kishore Gopalakrishnan">kishore96</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>0ay</cc>
    
    <cc>guido.iodice</cc>
    
    <cc>johnmaverick74</cc>
    
    <cc>kde</cc>
    
    <cc>kdedev</cc>
    
    <cc>mvourlakos</cc>
    
    <cc>nate</cc>
    
    <cc>niccolo.venerandi</cc>
    
    <cc>postix</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-workspace/-/commit/d20b171a86b4e57ba18af738ca99d1e620d2c7f4</cf_commitlink>
          <cf_versionfixedin>6.4.2 for Wayland users; 6.4.4 for X11 users</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2436235</commentid>
    <comment_count>0</comment_count>
    <who name="Kishore Gopalakrishnan">kishore96</who>
    <bug_when>2025-06-25 16:15:56 +0000</bug_when>
    <thetext>SUMMARY
If a global menu widget on a panel is in single-button mode (right-click &gt; configure Global Menu &gt; Appearance &gt; &apos;use a single button for application menu&apos;), clicking on the menu does nothing even when an application that uses the global menu is focused. However, the menu is correctly shown and usable in &apos;show full application menu&apos; mode.

STEPS TO REPRODUCE
1.  Place a global menu widget on your panel, and re-login
2. Right-click on the global menu, go to &apos;configure Global Menu &gt; Appearance&apos; and select &apos;use a single button for application menu&apos;
3. Open an application like Kate that makes use of the Global menu
4. Click on the global menu widget in the panel

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
Open a popup showing the application menu

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.10.0
Kernel Version: 6.12.34-1-lts (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Even when the global menu widget is not working, other components that use the dbus-exported application menu work fine (e.g. https://github.com/Kishore96in/krunner-appmenu ).

I first noticed this issue in Plasma 6.4.0 (after upgrading from 6.3.5).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2436268</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-06-25 16:58:46 +0000</bug_when>
    <thetext>*** Bug 506172 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2436270</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-06-25 17:02:14 +0000</bug_when>
    <thetext>Can confirm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2436279</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-06-25 17:17:21 +0000</bug_when>
    <thetext>This regressed in https://invent.kde.org/plasma/plasma-workspace/-/commit/d402f0cb307218971d322bcd54ec998f32f75b62.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2436843</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-06-27 08:47:43 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5630</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2437446</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-06-30 11:53:28 +0000</bug_when>
    <thetext>Git commit 67374f9e659cfd17c0cb4d7eba0a92a08a72c2d9 by Nate Graham, on behalf of Niccolò Venerandi.
Committed on 30/06/2025 at 11:21.
Pushed by niccolove into branch &apos;master&apos;.

Do not create multiple QMenu when global menu is set to compact

The multiple menus are only required when the global menu is in its
full size; when in compact view, only one is needed.

M  +21   -12   applets/appmenu/lib/appmenuapplet.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/67374f9e659cfd17c0cb4d7eba0a92a08a72c2d9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2437447</commentid>
    <comment_count>6</comment_count>
    <who name="Niccolò Venerandi">niccolo</who>
    <bug_when>2025-06-30 11:55:13 +0000</bug_when>
    <thetext>Git commit 0ce9b2204da994078a739fc8e6bfffd2a9c828fa by Niccolò Venerandi.
Committed on 30/06/2025 at 11:55.
Pushed by niccolove into branch &apos;Plasma/6.4&apos;.

Do not create multiple QMenu when global menu is set to compact

The multiple menus are only required when the global menu is in its
full size; when in compact view, only one is needed.


(cherry picked from commit 67374f9e659cfd17c0cb4d7eba0a92a08a72c2d9)

Co-authored-by: Niccolò Venerandi &lt;niccolo@venerandi.com&gt;

M  +21   -12   applets/appmenu/lib/appmenuapplet.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/0ce9b2204da994078a739fc8e6bfffd2a9c828fa</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2438809</commentid>
    <comment_count>7</comment_count>
    <who name="8py">0ay</who>
    <bug_when>2025-07-05 23:35:38 +0000</bug_when>
    <thetext>Updated to:
Name            : plasma-desktop
Version         : 6.4.2-1

On Arch Linux, and bug still persists. Just wanted to report it. Maybe it will not be until next release (6.4.2-2 or something not really sure). The bug has not been resolved yet though on my system. Just wanted to report it here in case anyone else is still having this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2439666</commentid>
    <comment_count>8</comment_count>
    <who name="8py">0ay</who>
    <bug_when>2025-07-09 20:15:23 +0000</bug_when>
    <thetext>I couldn&apos;t figure out how to edit my comment, so making a new one. Apparently, this bug is fixed for wayland users, just not x11 users. Will it not be fixed for x11 too? Should I remove this applet since I use x11? Or is there still a fix in the works for x11 users? Okay, thanks for any insight.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2439683</commentid>
    <comment_count>9</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2025-07-09 21:53:49 +0000</bug_when>
    <thetext>(In reply to 8py from comment #8)
&gt; I couldn&apos;t figure out how to edit my comment, so making a new one.
&gt; Apparently, this bug is fixed for wayland users, just not x11 users. Will it
&gt; not be fixed for x11 too? Should I remove this applet since I use x11? Or is
&gt; there still a fix in the works for x11 users? Okay, thanks for any insight.

I don&apos;t see anything to indicate this is fixed for Wayland but not X11. The fix was tagged for 6.4.2, but since you&apos;re still experiencing this bug, I&apos;ll reopen the report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2439973</commentid>
    <comment_count>10</comment_count>
    <who name="Guido">guido.iodice</who>
    <bug_when>2025-07-10 17:43:16 +0000</bug_when>
    <thetext>(In reply to TraceyC from comment #9)
&gt; (In reply to 8py from comment #8)
&gt; &gt; I couldn&apos;t figure out how to edit my comment, so making a new one.
&gt; &gt; Apparently, this bug is fixed for wayland users, just not x11 users. Will it
&gt; &gt; not be fixed for x11 too? Should I remove this applet since I use x11? Or is
&gt; &gt; there still a fix in the works for x11 users? Okay, thanks for any insight.
&gt; 
&gt; I don&apos;t see anything to indicate this is fixed for Wayland but not X11. The
&gt; fix was tagged for 6.4.2, but since you&apos;re still experiencing this bug, I&apos;ll
&gt; reopen the report.

I confirm the bug persists in X11 session.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2439975</commentid>
    <comment_count>11</comment_count>
    <who name="Guido">guido.iodice</who>
    <bug_when>2025-07-10 17:46:33 +0000</bug_when>
    <thetext>(In reply to TraceyC from comment #9)
&gt; (In reply to 8py from comment #8)
&gt; &gt; I couldn&apos;t figure out how to edit my comment, so making a new one.
&gt; &gt; Apparently, this bug is fixed for wayland users, just not x11 users. Will it
&gt; &gt; not be fixed for x11 too? Should I remove this applet since I use x11? Or is
&gt; &gt; there still a fix in the works for x11 users? Okay, thanks for any insight.
&gt; 
&gt; I don&apos;t see anything to indicate this is fixed for Wayland but not X11. 



+ if (KWindowSystem::isPlatformWayland() &amp;&amp; view() == CompactView) {
+           m_currentMenu-&gt;popup(pos);
+          connect(actionMenu, &amp;QMenu::aboutToHide, this, &amp;AppMenuApplet::onMenuAboutToHide, Qt::UniqueConnection);
+      }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2441867</commentid>
    <comment_count>12</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-07-21 04:34:32 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5692</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2441868</commentid>
    <comment_count>13</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-07-21 04:34:34 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5692</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2441930</commentid>
    <comment_count>14</comment_count>
    <who name="Guido">guido.iodice</who>
    <bug_when>2025-07-21 10:29:07 +0000</bug_when>
    <thetext>(In reply to Bug Janitor Service from comment #13)
&gt; A possibly relevant merge request was started @
&gt; https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5692

It is quite irritating that when a bug is fixed, a useless check is inserted that only makes the fix work on Wayland.
I hope such a thing will never happen again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2442011</commentid>
    <comment_count>15</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-07-21 17:48:14 +0000</bug_when>
    <thetext>Git commit 6d56ae9d703cbe1fc6ef2f66cff312ad54c5ae3e by Nate Graham, on behalf of Kishore Gopalakrishnan.
Committed on 21/07/2025 at 15:05.
Pushed by ngraham into branch &apos;master&apos;.

global menu applet: fix single button mode on X11

The check for Wayland is not needed, since the code inside the block
also works on X11 (tested by applying on top of Plasma 6.4.2).

Test plan:
1. open Konsole
2. Check that &apos;File &gt; New Window&apos; works correctly when invoked from the
global menu applet in single button mode.
(on X11)

M  +1    -3    applets/appmenu/lib/appmenuapplet.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/6d56ae9d703cbe1fc6ef2f66cff312ad54c5ae3e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2442012</commentid>
    <comment_count>16</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-07-21 17:48:29 +0000</bug_when>
    <thetext>Git commit d20b171a86b4e57ba18af738ca99d1e620d2c7f4 by Nate Graham.
Committed on 21/07/2025 at 17:48.
Pushed by ngraham into branch &apos;Plasma/6.4&apos;.

global menu applet: fix single button mode on X11

The check for Wayland is not needed, since the code inside the block
also works on X11 (tested by applying on top of Plasma 6.4.2).

Test plan:
1. open Konsole
2. Check that &apos;File &gt; New Window&apos; works correctly when invoked from the
global menu applet in single button mode.
(on X11)


(cherry picked from commit 6d56ae9d703cbe1fc6ef2f66cff312ad54c5ae3e)

Co-authored-by: Kishore Gopalakrishnan &lt;kishore96@gmail.com&gt;

M  +1    -3    applets/appmenu/lib/appmenuapplet.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/d20b171a86b4e57ba18af738ca99d1e620d2c7f4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2445424</commentid>
    <comment_count>17</comment_count>
    <who name="8py">0ay</who>
    <bug_when>2025-08-06 00:06:35 +0000</bug_when>
    <thetext>Okay, bug is fixed. Relevant info (system: Arch Linux), packages:

Name            : plasma-x11-session
Version         : 6.4.4-1

Name            : kwin-x11
Version         : 6.4.4-1

Name            : plasma-desktop
Version         : 6.4.4-1


Thanks for the great work everybody. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2445539</commentid>
    <comment_count>18</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2025-08-06 16:10:10 +0000</bug_when>
    <thetext>Thanks for confirming!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>