Re: [PATCH 2/2] Enable usermenu

Josip Deanovic <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <15520159.EOTiIk4Dh0@libria>
On Tuesday 2015-08-25 18:25:39 Yury Tarasievich wrote:
> Guys, terribly sorry for the ignorance, but I
> somehow can't figure out this new (old?) menu thing?
> 
> It is named <window class>.menu and has to
> reside in a specific location, that much I've got.
> 
> Now, tell me, please, when/how is this new menu
> activated; is it superceding the global menu?
> So, e.g., 'maximize' from global menu item must
> be added by hand into every such app menu?

No, it looks more like GNUstep style menus if you ever saw those.

> Can't play with patching/compiling right now.
> 
> -Yury
> 
> On 08/25/2015 08:15 PM, Amadeusz Sławiński wrote:
> ...

I have attached the screenshot of the usermenu example look with
my kcalc (ignore the titlebar and menu theme I am using).

In order to test it with e.g. kcalc this is what you need to do:
1. widnowmaker need to be configured (compiled) with the --enable-usermenu
   configure option
2. Under the directory /home/djosip/GNUstep/Library/WindowMaker/UserMenus
   create file named kcalc.Kcalc.menu with the following content:
(
  "Calculator",
  ("Put 1", SHORTCUT, "2"),
  ("Functions",
    ("Put 2", SHORTCUT, "2"),
    ("Put 3,4 and 5", SHORTCUT, (3,4,5))
  ),
  ("Exit", SHORTCUT, "Control+q")
)

3. Run kcalc and every time it is focused with the pointer a menu should
   appear. Selecting a option from the menu will send the specified
   keyboard event to the kcalc window (kcalc.Kcalc window to be exact).


-- 
Josip Deanovic
usermenu.png (image/png, 118.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.