CTWM
Loading...
Searching...
No Matches
/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 XEvent * LastFocusEvent (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 char * Action
static TwmWindowButtonWindow

Macro Definition Documentation

◆ MAX_NAME_LEN

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

Referenced by HandlePropertyNotify().

Typedef Documentation

◆ HENScanArgs

typedef struct HENScanArgs HENScanArgs

◆ HLNScanArgs

typedef struct HLNScanArgs HLNScanArgs

Function Documentation

◆ do_key_menu()

void do_key_menu ( MenuRoot * menu,
Window w )
static

Definition at line 2564 of file event_handlers.c.

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

Referenced by HandleKeyPress().

◆ do_menu()

void do_menu ( MenuRoot * menu,
Window w )
static

Definition at line 2531 of file event_handlers.c.

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

Referenced by HandleButtonPress().

◆ flush_expose()

void flush_expose ( Window w)
static

Definition at line 3908 of file event_handlers.c.

References dpy.

Referenced by HandleExpose().

◆ HandleButtonPress()

◆ HandleButtonRelease()

◆ HandleCirculateNotify()

◆ HandleClientMessage()

void HandleClientMessage ( void )

◆ HandleColormapNotify()

◆ HandleConfigureRequest()

void HandleConfigureRequest ( void )

◆ HandleCreateNotify()

void HandleCreateNotify ( void )

Definition at line 1901 of file event_handlers.c.

References dpy, and Event.

◆ HandleDestroyNotify()

◆ HandleEnterNotify()

◆ HandleExpose()

◆ HandleFocusChange()

void HandleFocusChange ( void )

Definition at line 314 of file event_handlers.c.

References Event, HandleFocusIn(), HandleFocusOut(), LastFocusEvent(), and Tmp_win.

Referenced by InitEvents().

◆ HandleFocusIn()

void HandleFocusIn ( void )
static

◆ HandleFocusOut()

void HandleFocusOut ( void )
static

◆ HandleKeyPress()

◆ HandleKeyRelease()

void HandleKeyRelease ( void )

Definition at line 526 of file event_handlers.c.

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

◆ HandleLeaveNotify()

◆ HandleMapNotify()

void HandleMapNotify ( void )

Definition at line 2068 of file event_handlers.c.

References dpy, Scr, and Tmp_win.

◆ HandleMapRequest()

◆ HandleMotionNotify()

void HandleMotionNotify ( void )

◆ HandlePropertyNotify()

◆ HandleShapeNotify()

void HandleShapeNotify ( void )

Definition at line 3854 of file event_handlers.c.

References dpy, Event, SetFrameShape(), and Tmp_win.

Referenced by InitEvents().

◆ HandleUnknown()

void HandleUnknown ( void )

Definition at line 3900 of file event_handlers.c.

References Event.

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

◆ HandleUnmapNotify()

void HandleUnmapNotify ( void )

◆ HandleVisibilityNotify()

◆ HENQueueScanner()

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

◆ HLNQueueScanner()

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

Definition at line 3473 of file event_handlers.c.

References HLNScanArgs::enters, HLNScanArgs::matches, and HLNScanArgs::w.

Referenced by HandleLeaveNotify().

◆ LastFocusEvent()

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

Definition at line 263 of file event_handlers.c.

References dpy, and Tmp_win.

Referenced by HandleFocusChange().

◆ remove_window_from_ring()

void remove_window_from_ring ( TwmWindow * tmp)
static

◆ SendTakeFocusMessage()

void SendTakeFocusMessage ( TwmWindow * tmp,
Time timestamp )
static

Definition at line 3920 of file event_handlers.c.

References send_clientmessage(), and TwmWindow::w.

Referenced by HandleEnterNotify().

◆ set_mask_ignore()

unsigned int set_mask_ignore ( unsigned int modifier)
static

Definition at line 87 of file event_handlers.c.

References Scr.

Referenced by HandleButtonPress(), and HandleKeyPress().

Variable Documentation

◆ Action

char* Action
static

◆ ButtonWindow

TwmWindow* ButtonWindow
static

Definition at line 82 of file event_handlers.c.

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