CTWM
Loading...
Searching...
No Matches
Macros | Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/event_core.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/time.h>
#include <X11/extensions/shape.h>
#include "animate.h"
#include "colormaps.h"
#include "events.h"
#include "event_handlers.h"
#include "event_internal.h"
#include "event_names.h"
#include "functions.h"
#include "iconmgr.h"
#include "image.h"
#include "screen.h"
#include "signals.h"
#include "util.h"
#include "version.h"
#include "win_utils.h"
Include dependency graph for event_core.c:

Go to the source code of this file.

Macros

#define MAX_X_EVENT   256
 
#define STDH(evt)   EventHandler[evt] = Handle##evt
 
#define NEXTEVENT   XtAppNextEvent(appContext, event)
 

Functions

static void CtwmNextEvent (Display *display, XEvent *event)
 
static bool StashEventTime (XEvent *ev)
 
static void dumpevent (const XEvent *e)
 
void InitEvents (void)
 
void HandleEvents (void)
 
bool DispatchEvent (void)
 
bool DispatchEvent2 (void)
 

Variables

event_proc EventHandler [256]
 
int Context = -1
 
XEvent Event
 
Window DragWindow
 
int origDragX
 
int origDragY
 
int DragX
 
int DragY
 
unsigned int DragWidth
 
unsigned int DragHeight
 
unsigned int DragBW
 
int CurrentDragX
 
int CurrentDragY
 
Time EventTime = CurrentTime
 
bool enter_flag
 
bool leave_flag
 
TwmWindowenter_win
 
TwmWindowraise_win
 
TwmWindowleave_win
 
TwmWindowlower_win
 
bool ColortableThrashing
 
TwmWindowTmp_win
 
int ButtonPressed = -1
 
bool Cancel = false
 

Macro Definition Documentation

◆ MAX_X_EVENT

#define MAX_X_EVENT   256

Definition at line 63 of file event_core.c.

Referenced by DispatchEvent(), DispatchEvent2(), HandleEvents(), and InitEvents().

◆ NEXTEVENT

◆ STDH

#define STDH ( evt)    EventHandler[evt] = Handle##evt

Function Documentation

◆ CtwmNextEvent()

static void CtwmNextEvent ( Display * display,
XEvent * event )
static

◆ DispatchEvent()

bool DispatchEvent ( void )

◆ DispatchEvent2()

bool DispatchEvent2 ( void )

◆ dumpevent()

static void dumpevent ( const XEvent * e)
static

Definition at line 428 of file event_core.c.

References event_name_by_num(), PlaceX, and tracefile.

Referenced by DispatchEvent(), and DispatchEvent2().

◆ HandleEvents()

void HandleEvents ( void )

◆ InitEvents()

void InitEvents ( void )

◆ StashEventTime()

static bool StashEventTime ( XEvent * ev)
static

Definition at line 387 of file event_core.c.

References EventTime, and PlaceX.

Referenced by DispatchEvent(), and DispatchEvent2().

Variable Documentation

◆ ButtonPressed

int ButtonPressed = -1

◆ Cancel

bool Cancel = false

◆ ColortableThrashing

bool ColortableThrashing

Definition at line 90 of file event_core.c.

Referenced by HandleColormapNotify(), HandleEvents(), and InstallColormaps().

◆ Context

int Context = -1

◆ CurrentDragX

int CurrentDragX

Definition at line 76 of file event_core.c.

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

◆ CurrentDragY

int CurrentDragY

Definition at line 77 of file event_core.c.

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

◆ DragBW

unsigned int DragBW

Definition at line 75 of file event_core.c.

Referenced by f_movetitlebar_impl(), HandleButtonRelease(), and movewindow().

◆ DragHeight

unsigned int DragHeight

◆ DragWidth

unsigned int DragWidth

◆ DragWindow

Window DragWindow

◆ DragX

int DragX

Definition at line 71 of file event_core.c.

Referenced by f_movetitlebar_impl(), HandleButtonRelease(), and movewindow().

◆ DragY

int DragY

Definition at line 72 of file event_core.c.

Referenced by f_movetitlebar_impl(), HandleButtonRelease(), and movewindow().

◆ enter_flag

bool enter_flag

◆ enter_win

TwmWindow* enter_win

◆ Event

XEvent Event

◆ EventHandler

event_proc EventHandler[256]

◆ EventTime

Time EventTime = CurrentTime

◆ leave_flag

bool leave_flag

◆ leave_win

TwmWindow * leave_win

◆ lower_win

TwmWindow * lower_win

◆ origDragX

int origDragX

Definition at line 69 of file event_core.c.

Referenced by f_movetitlebar_impl(), HandleButtonPress(), movewindow(), and resizeFromCenter().

◆ origDragY

int origDragY

Definition at line 70 of file event_core.c.

Referenced by f_movetitlebar_impl(), HandleButtonPress(), movewindow(), and resizeFromCenter().

◆ raise_win

TwmWindow * raise_win

◆ Tmp_win

TwmWindow* Tmp_win