Josip DeanovicOn Tuesday 2015-08-25 14:20:12 wrote: > On Tuesday 2015-08-25 07:54:03 Rodolfo García Peñas wrote: > > Hello, > > > > ok, the usermenu is now clear. IMO, we can improve this menu, for > > example to send text to xterms or similar (menu with "ssh -l user > > example.com" could be nice). > > > > But my problem now is related to appmenu. I don't know how this menu > > is used by the user, and how is configured. It includes X11 calls to > > create a menu and store it in wapp->menu (usermenu uses the same > > pointer). > > > > Help about it is very appreciated. > > I have found this excerpt in NEWS file, it is related to Shared > application icons but there is some info about appmenu: > > -----BEGIN----- > As a side note: wterm can use the shared appicon feature as long as it > doesn't use the appmenu (will do this by default). If you start it > using the appmenu (wterm -wm) it will disable the shared appicon > feature because apps with appmenus are incompatible with this feature. > > If an application is a GNUstep application or if it has an appmenu, it's > detected automatically and the shared appicon is disabled automatically > without any user intervention or need to configure anything. > -----END----- > > > I have installed some GNUstep applications just to check their window > properties. I would say that what makes a GNUstep application > recognizable is the WM_CLASS set to GNUstep. > > From the excerpt above I would speculate that appmenu is not a > configurable option which could be used for any application but the > feature of an application. > I am speculating here but it might be that an application need to > create a window of a docked type and with some appropriate hints (skip > taskbar, skip pager, sticky and so on) which would then act as an > appmenu. > > Is there something in a code that would support this?
I have just compiled wterm to check what "wterm -wm" does and it's a bit different comparing to what GNUstep applications usually do. While GNUstep applications create menu (a window of course) that uses NEXT colors (mainly gray), wterm is actually creating menu that looks the same as other internal windowmaker menus. Looking into wterm window properties shows that in this case there is a property called _WINDOWMAKER_MENU which contains the definition of the wterm menu options. Hope that this helps a bit. -- Josip Deanovic -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.