JWM Source Documentation

swallow.h File Reference

Swallow tray component. More...

Go to the source code of this file.

Functions

struct TrayComponentTypeCreateSwallow (const char *name, const char *command, int width, int height)
 Create a swallowed application tray component.
int CheckSwallowMap (const XMapEvent *event)
 Determine if a map event was for a window that should be swallowed.
int ProcessSwallowEvent (const XEvent *event)
 Process an event on a swallowed window.
void InitializeSwallow ()
void StartupSwallow ()
void ShutdownSwallow ()
void DestroySwallow ()

Detailed Description

Swallow tray component.

Author:
Joe Wingbermuehle
Date:
2005-2006

Definition in file swallow.h.


Function Documentation

int CheckSwallowMap ( const XMapEvent *  event)

Determine if a map event was for a window that should be swallowed.

Parameters:
eventThe map event.
Returns:
1 if this window should be swallowed, 0 if not.
struct TrayComponentType* CreateSwallow ( const char *  name,
const char *  command,
int  width,
int  height 
) [read]

Create a swallowed application tray component.

Parameters:
nameThe name of the application to swallow.
commandThe command used to start the swallowed application.
widthThe width to use (0 for default).
heightthe height to use (0 for default).
void DestroySwallow ( )
void InitializeSwallow ( )
int ProcessSwallowEvent ( const XEvent *  event)

Process an event on a swallowed window.

Parameters:
eventThe event to process.
Returns:
1 if the event was for a swallowed window, 0 if not.
void ShutdownSwallow ( )
void StartupSwallow ( )