CTWM
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/event_handlers.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <X11/Xatom.h>
#include <X11/extensions/shape.h>
#include "add_window.h"
#include "animate.h"
#include "clicktofocus.h"
#include "colormaps.h"
#include "ctwm_atoms.h"
#include "ctwm_shutdown.h"
#include "events.h"
#include "event_handlers.h"
#include "event_internal.h"
#include "event_names.h"
#include "functions.h"
#include "functions_defs.h"
#include "gram.tab.h"
#include "iconmgr.h"
#include "icons.h"
#include "image.h"
#include "list.h"
#include "occupation.h"
#include "otp.h"
#include "parse.h"
#include "screen.h"
#include "util.h"
#include "vscreen.h"
#include "win_decorations.h"
#include "win_iconify.h"
#include "win_ops.h"
#include "win_regions.h"
#include "win_resize.h"
#include "win_ring.h"
#include "win_utils.h"
#include "workspace_manager.h"
#include "workspace_utils.h"
Include dependency graph for event_handlers.c:

Go to the source code of this file.

Data Structures

struct  HENScanArgs
 
struct  HLNScanArgs
 

Macros

#define MAX_NAME_LEN   200L /* truncate to this many */
 

Typedefs

typedef struct HENScanArgs HENScanArgs
 
typedef struct HLNScanArgs HLNScanArgs
 

Functions

static void do_key_menu (MenuRoot *menu, Window w)
 
static void HandleFocusIn (void)
 
static void HandleFocusOut (void)
 
static void SendTakeFocusMessage (TwmWindow *tmp, Time timestamp)
 
static unsigned int set_mask_ignore (unsigned int modifier)
 
void HandleColormapNotify (void)
 
static XEventLastFocusEvent (Window w, XEvent *first)
 
void HandleFocusChange (void)
 
void HandleCirculateNotify (void)
 
void HandleVisibilityNotify (void)
 
void HandleKeyRelease (void)
 
void HandleKeyPress (void)
 
void HandlePropertyNotify (void)
 
void HandleClientMessage (void)
 
static void flush_expose (Window w)
 
void HandleExpose (void)
 
static void remove_window_from_ring (TwmWindow *tmp)
 
void HandleDestroyNotify (void)
 
void HandleCreateNotify (void)
 
void HandleMapRequest (void)
 
void HandleMapNotify (void)
 
void HandleUnmapNotify (void)
 
void HandleMotionNotify (void)
 
void HandleButtonRelease (void)
 
static void do_menu (MenuRoot *menu, Window w)
 
void HandleButtonPress (void)
 
static Bool HENQueueScanner (Display *display, XEvent *ev, char *_args)
 
void HandleEnterNotify (void)
 
static Bool HLNQueueScanner (Display *display, XEvent *ev, char *_args)
 
void HandleLeaveNotify (void)
 
void HandleConfigureRequest (void)
 
void HandleShapeNotify (void)
 
void HandleUnknown (void)
 

Variables

static charAction
 
static TwmWindowButtonWindow
 

Macro Definition Documentation

◆ MAX_NAME_LEN

#define MAX_NAME_LEN   200L /* truncate to this many */

Typedef Documentation

◆ HENScanArgs

typedef struct HENScanArgs HENScanArgs

◆ HLNScanArgs

typedef struct HLNScanArgs HLNScanArgs

Function Documentation

◆ do_key_menu()

static void do_key_menu ( MenuRoot * menu,
Window w )
static

Definition at line 2564 of file event_handlers.c.

References dpy, Event, PlaceX, PopUpMenu(), Scr, UpdateMenu(), x, and y.

Referenced by HandleKeyPress().

◆ do_menu()

static void do_menu ( MenuRoot * menu,
Window w )
static

Definition at line 2531 of file event_handlers.c.

References dpy, Event, PlaceX, PopUpMenu(), Scr, UpdateMenu(), x, and y.

Referenced by HandleButtonPress().

◆ flush_expose()

static void flush_expose ( Window w)
static

Definition at line 3908 of file event_handlers.c.

References dpy, and PlaceX.

Referenced by HandleExpose().

◆ HandleButtonPress()

void HandleButtonPress ( void )

◆ HandleButtonRelease()

void HandleButtonRelease ( void )

◆ HandleCirculateNotify()

void HandleCirculateNotify ( void )

◆ HandleClientMessage()

void HandleClientMessage ( void )

◆ HandleColormapNotify()

void HandleColormapNotify ( void )

◆ HandleConfigureRequest()

void HandleConfigureRequest ( void )

◆ HandleCreateNotify()

void HandleCreateNotify ( void )

Definition at line 1901 of file event_handlers.c.

References dpy, Event, and PlaceX.

◆ HandleDestroyNotify()

void HandleDestroyNotify ( void )

◆ HandleEnterNotify()

void HandleEnterNotify ( void )

◆ HandleExpose()

void HandleExpose ( void )

◆ HandleFocusChange()

void HandleFocusChange ( void )

◆ HandleFocusIn()

static void HandleFocusIn ( void )
static

◆ HandleFocusOut()

static void HandleFocusOut ( void )
static

◆ HandleKeyPress()

void HandleKeyPress ( void )

◆ HandleKeyRelease()

void HandleKeyRelease ( void )

Definition at line 526 of file event_handlers.c.

References Event, Scr, Tmp_win, and WMgrHandleKeyReleaseEvent().

◆ HandleLeaveNotify()

void HandleLeaveNotify ( void )

◆ HandleMapNotify()

void HandleMapNotify ( void )

◆ HandleMapRequest()

void HandleMapRequest ( void )

◆ HandleMotionNotify()

void HandleMotionNotify ( void )

◆ HandlePropertyNotify()

void HandlePropertyNotify ( void )

◆ HandleShapeNotify()

void HandleShapeNotify ( void )

Definition at line 3854 of file event_handlers.c.

References dpy, Event, TwmWindow::frame, PlaceX, SetFrameShape(), Tmp_win, and TwmWindow::wShaped.

Referenced by InitEvents().

◆ HandleUnknown()

void HandleUnknown ( void )

Definition at line 3900 of file event_handlers.c.

References Event, and PlaceX.

Referenced by f_movetitlebar_impl(), f_resize_impl(), InitEvents(), and movewindow().

◆ HandleUnmapNotify()

void HandleUnmapNotify ( void )

◆ HandleVisibilityNotify()

void HandleVisibilityNotify ( void )

◆ HENQueueScanner()

static Bool HENQueueScanner ( Display * display,
XEvent * ev,
char * _args )
static

Definition at line 3040 of file event_handlers.c.

References HENScanArgs::leaves, and PlaceX.

Referenced by HandleEnterNotify().

◆ HLNQueueScanner()

static Bool HLNQueueScanner ( Display * display,
XEvent * ev,
char * _args )
static

Definition at line 3473 of file event_handlers.c.

References HLNScanArgs::enters, and PlaceX.

Referenced by HandleLeaveNotify().

◆ LastFocusEvent()

static XEvent * LastFocusEvent ( Window w,
XEvent * first )
static

Definition at line 263 of file event_handlers.c.

References dpy, PlaceX, and Tmp_win.

Referenced by HandleFocusChange().

◆ remove_window_from_ring()

static void remove_window_from_ring ( TwmWindow * tmp)
static

◆ SendTakeFocusMessage()

static void SendTakeFocusMessage ( TwmWindow * tmp,
Time timestamp )
static

Definition at line 3920 of file event_handlers.c.

References PlaceX, and send_clientmessage().

Referenced by HandleEnterNotify().

◆ set_mask_ignore()

static unsigned int set_mask_ignore ( unsigned int modifier)
static

Definition at line 87 of file event_handlers.c.

References PlaceX.

Referenced by HandleButtonPress(), and HandleKeyPress().

Variable Documentation

◆ Action

char* Action
static

Definition at line 80 of file event_handlers.c.

Referenced by HandleButtonPress(), and HandleButtonRelease().

◆ ButtonWindow

TwmWindow* ButtonWindow
static

Definition at line 82 of file event_handlers.c.

Referenced by HandleButtonPress(), HandleButtonRelease(), and HandleKeyPress().