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

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

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 do_key_menu(), dpy, Event, PopUpMenu(), Scr, and UpdateMenu().

Referenced by do_key_menu(), and HandleKeyPress().

◆ do_menu()

void do_menu ( MenuRoot * menu,
Window w )
static

Definition at line 2531 of file event_handlers.c.

References do_menu(), dpy, Event, PopUpMenu(), Scr, and UpdateMenu().

Referenced by do_menu(), and HandleButtonPress().

◆ flush_expose()

void flush_expose ( Window w)
static

Definition at line 3908 of file event_handlers.c.

References dpy, and flush_expose().

Referenced by flush_expose(), and HandleExpose().

◆ HandleButtonPress()

void HandleButtonPress ( void )

Definition at line 2606 of file event_handlers.c.

References Action, MenuItem::action, TitleButtonFunc::action, ActiveItem, ActiveMenu, AlternateContext, AlternateKeymap, ButtonPressed, ButtonWindow, C_ALTERNATE, C_FRAME, C_ICON, C_ICONMGR, C_IDENTIFY, C_NO_CONTEXT, C_ROOT, C_TITLE, C_WINDOW, C_WORKSPACE, Cancel, FuncButton::cont, Context, CurrentDragX, CurrentDragY, do_menu(), WList::down, DownIconManager, dpy, DragWindow, DrawIconManagerBorder(), Event, ExecuteFunction(), TwmWindow::frame, TwmWindow::frame_bw3D, FuncButton::func, MenuItem::func, TitleButtonFunc::func, TitleButton::funs, GetTwmWindow(), HandleButtonPress(), TwmWindow::icon, WList::icon, TwmWindow::iconmanagerlist, WList::iconmgr, TBWindow::info, TwmWindow::iswspmgr, FuncButton::item, JunkChild, LeftButt, FuncButton::menu, MenuContext, menuFromFrameOrWindowOrTitlebar, TitleButtonFunc::menuroot, MiddleButt, FuncButton::mods, TitleButtonFunc::mods, mods_used, MoveMenu(), MoveOutline(), FuncButton::next, TitleButtonFunc::next, FuncButton::num, TitleButtonFunc::num, OccupyHandleButtonEvent(), origDragX, origDragY, OtpRaise(), MenuRoot::pinned, PopDownMenu(), ResizeWindow, RightButt, RootFunction, Scr, set_mask_ignore(), SetFocus(), TwmWindow::title_height, TwmWindow::title_w, TwmWindow::titlebuttons, Tmp_win, IconMgr::twm_win, UninstallRootColormap(), Icon::w, MenuRoot::w, TwmWindow::w, WList::w, TBWindow::window, WinWin, WMapRaise(), WMgrHandleButtonEvent(), TwmWindow::wmhints, and wt_Desktop.

Referenced by HandleButtonPress().

◆ HandleButtonRelease()

◆ HandleCirculateNotify()

◆ HandleClientMessage()

void HandleClientMessage ( void )

◆ HandleColormapNotify()

◆ HandleConfigureRequest()

◆ HandleCreateNotify()

void HandleCreateNotify ( void )

Definition at line 1901 of file event_handlers.c.

References dpy, Event, and HandleCreateNotify().

Referenced by HandleCreateNotify().

◆ HandleDestroyNotify()

◆ HandleEnterNotify()

◆ HandleExpose()

◆ HandleFocusChange()

void HandleFocusChange ( void )

◆ HandleFocusIn()

◆ HandleFocusOut()

◆ HandleKeyPress()

◆ HandleKeyRelease()

void HandleKeyRelease ( void )

Definition at line 526 of file event_handlers.c.

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

Referenced by HandleKeyRelease().

◆ HandleLeaveNotify()

◆ HandleMapNotify()

◆ HandleMapRequest()

◆ HandleMotionNotify()

◆ HandlePropertyNotify()

◆ HandleShapeNotify()

void HandleShapeNotify ( void )

◆ HandleUnknown()

void HandleUnknown ( void )

Definition at line 3900 of file event_handlers.c.

References Event, and HandleUnknown().

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

◆ HandleUnmapNotify()

◆ HandleVisibilityNotify()

◆ HENQueueScanner()

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

◆ HLNQueueScanner()

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

◆ LastFocusEvent()

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

Definition at line 263 of file event_handlers.c.

References dpy, LastFocusEvent(), and Tmp_win.

Referenced by HandleFocusChange(), and LastFocusEvent().

◆ remove_window_from_ring()

void remove_window_from_ring ( TwmWindow * tmp)
static

◆ SendTakeFocusMessage()

void SendTakeFocusMessage ( TwmWindow * tmp,
Time timestamp )
static

◆ set_mask_ignore()

unsigned int set_mask_ignore ( unsigned int modifier)
static

Definition at line 87 of file event_handlers.c.

References Scr, and set_mask_ignore().

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

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().