JWM Source Documentation
winmenu.h File Reference

Functions for handling window menus. More...

#include "menu.h"

Go to the source code of this file.


MenuCreateWindowMenu (struct ClientNode *np)
 Create a window menu.
void ShowWindowMenu (struct ClientNode *np, int x, int y, char keyboard)
 Show a window menu.
void ChooseWindow (MenuAction *action)
 Grab the mouse to select a window.
void RunWindowCommand (MenuAction *action, unsigned button)
 Run a menu action for selected client.

Detailed Description

Functions for handling window menus.

Joe Wingbermuehle

Definition in file winmenu.h.

Function Documentation

void ChooseWindow ( MenuAction action)

Grab the mouse to select a window.

actionThe action to perform when a window is selected.

Definition at line 204 of file winmenu.c.

References MenuAction::context, display, FindClient(), GrabMouseForChoose(), JXUngrabPointer, RunWindowCommand(), and WaitForEvent().

Referenced by RunRootCommand().

Menu* CreateWindowMenu ( ClientNode np)
void RunWindowCommand ( MenuAction action,
unsigned  button 
void ShowWindowMenu ( ClientNode np,
int  x,
int  y,
char  keyboard 

Show a window menu.

npThe client for the window menu.
xThe x-coordinate of the menu (root relative).
yThe y-coordinate of the menu (root relative).
keyboardSet if this request came from a key binding.

Definition at line 29 of file winmenu.c.

References CreateWindowMenu(), DestroyMenu(), InitializeMenu(), RunWindowCommand(), and ShowMenu().

Referenced by DispatchBorderButtonEvent(), HandleKeyPress(), and RunTaskBarCommand().

joewing.net / Projects / JWM