rehex icon indicating copy to clipboard operation
rehex copied to clipboard

Many contextual menu options unavailable when using Global Menu on Linux

Open alecello opened this issue 5 years ago • 2 comments

I have my KDE desktop setup with a global menu, however this causes many of the program options (inline comment style, color scheme, offset style and so on) to be grayed out and unavailable. Furthermore, those options implemented as radio buttons or check boxes become "normal" options (with no box). This is fixed by removing the global menu widget and adding it back. I am fairly certain this is not KDE's fault since I use other GTK based apps with global menu and they seem to work fine. My configuration is as follows:

  • Arch Linux (linux-zen 5.9.8)
  • KDE Plasma 5.20.3
  • Rehex git version (commit 69a1bae)

UPDATE: The issue is somewhat erratic: sometimes i get it to work without removing and re-adding the Global Menu widget by fiddling around with it, but I'm not yet sure how.

alecello avatar Nov 15 '20 08:11 alecello

I'll try to give this a go at some point, probably a wxWidgets bug if other applications work just fine.

solemnwarning avatar Nov 15 '20 10:11 solemnwarning

Well this took me a while to get to.

I spent some time trying to debug this today and I think its a KDE bug. I can't figure out exactly what's so special about wxWidgets applications, but I can see the behaviour you report with rehex and with the wxWidgets "menu" sample.

The global menus work in XFCE, which as far as I can tell are relying on the same mechanism to expose the menus from the application (appmenu-gtk-module), so it could possibly be an issue for applications using the older-style GtkMenuItem API instead of GMenuModel.

solemnwarning avatar Apr 20 '23 20:04 solemnwarning