-\f
-#if ((!defined(WSM)) || defined(MWM_QATS_PROTOCOL))
-/*************************************<->*************************************
- *
- * F_Post_RMenu (args, pCD, event)
- *
- *
- * Description:
- * -----------
- * This is the window manager function handler for posting the
- * root window menu.
- * This function can only be invoked by a key event.
- *
- *************************************<->***********************************/
-
-Boolean F_Post_RMenu (String args, ClientData *pCD, XEvent *event)
-{
- MenuSpec *rootMenu;
- unsigned int button = NoButton;
- int x, y;
- long flags = POST_AT_XY;
- Window rwin, cwin;
- int winx, winy;
- unsigned int mask;
-
-
- if ((event->type == KeyPress) || (event->type == KeyRelease))
- {
-
- /* Find the root menu spec */
- for (rootMenu = ACTIVE_PSD->menuSpecs;
- rootMenu != (MenuSpec *) NULL;
- rootMenu = rootMenu->nextMenuSpec)
- {
- if (strcmp(rootMenu->name, ACTIVE_PSD->rootMenu) == 0)
- break;
- }
-
- /* If we couldn't find the root menu, then do nothing. */
- if (rootMenu == (MenuSpec *) NULL)
- return (False);
-
- else
- {
- XQueryPointer(DISPLAY, ACTIVE_ROOT,
- &rwin, &cwin, &x, &y, &winx, &winy, &mask);
-
- PostMenu (rootMenu, NULL, x, y, NoButton, F_CONTEXT_ROOT,
- flags, event);
- }
- }
-
- return (False);
-
-} /* END OF FUNCTION F_Post_RMenu */
-#endif /* !defined(WSM) || defined(MWM_QATS_PROTOCOL) */
-
-\f