CTWM
Loading...
Searching...
No Matches
/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)
#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

#define NEXTEVENT   XtAppNextEvent(appContext, event)

Referenced by CtwmNextEvent().

◆ STDH

#define STDH ( evt)
Value:
EventHandler[evt] = Handle##evt
event_proc EventHandler[256]
Definition event_core.c:64

Referenced by InitEvents().

Function Documentation

◆ CtwmNextEvent()

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

◆ DispatchEvent()

◆ DispatchEvent2()

◆ dumpevent()

void dumpevent ( const XEvent * e)
static

Definition at line 428 of file event_core.c.

References event_name_by_num(), and tracefile.

Referenced by DispatchEvent(), and DispatchEvent2().

◆ HandleEvents()

◆ InitEvents()

◆ StashEventTime()

bool StashEventTime ( XEvent * ev)
static

Definition at line 387 of file event_core.c.

References EventTime.

Referenced by DispatchEvent(), and DispatchEvent2().

Variable Documentation

◆ ButtonPressed

◆ Cancel

bool Cancel = false

◆ ColortableThrashing

bool ColortableThrashing

Definition at line 90 of file event_core.c.

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

◆ Context

◆ 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

◆ enter_win

◆ Event

◆ EventHandler

◆ EventTime

◆ leave_flag

◆ leave_win

◆ 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

◆ Tmp_win