JWM Source Documentation
Functions
winmenu.c File Reference
#include "jwm.h"
#include "winmenu.h"
#include "client.h"
#include "desktop.h"
#include "move.h"
#include "resize.h"
#include "event.h"
#include "cursor.h"
#include "misc.h"
#include "root.h"
#include "settings.h"

Go to the source code of this file.

Functions

static void CreateWindowLayerMenu (Menu *menu, ClientNode *np)
 Create a window layer submenu.
 
static void CreateWindowSendToMenu (Menu *menu, ClientNode *np)
 Create a send to submenu.
 
static void AddWindowMenuItem (Menu *menu, const char *name, MenuActionType type, ClientNode *np, int value)
 Add an item to the current window menu.
 
void ShowWindowMenu (ClientNode *np, int x, int y, char keyboard)
 Show a window menu.
 
MenuCreateWindowMenu (ClientNode *np)
 Create a new window menu.
 
void ChooseWindow (MenuAction *action)
 Select a window for performing an action.
 
void RunWindowCommand (MenuAction *action, unsigned button)
 Window menu action callback.
 

Function Documentation

void AddWindowMenuItem ( Menu menu,
const char *  name,
MenuActionType  type,
ClientNode np,
int  value 
)
static
void ChooseWindow ( MenuAction action)

Select a window for performing an action.

Grab the mouse to select a window.

Definition at line 204 of file winmenu.c.

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

Referenced by RunRootCommand().

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

Show a window menu.

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