CTWM
|
#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"
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) |
#define MAX_X_EVENT 256 |
Definition at line 63 of file event_core.c.
Referenced by DispatchEvent(), DispatchEvent2(), HandleEvents(), and InitEvents().
#define NEXTEVENT XtAppNextEvent(appContext, event) |
Definition at line 219 of file event_core.c.
References AnimateTimeout, AnimationActive, AnimationSpeed, handle_signal_flag(), MaybeAnimate, NEXTEVENT, PlaceX, SignalFlag, and TryToAnimate().
Referenced by HandleEvents().
Definition at line 305 of file event_core.c.
References CLarg, ConfigureCaptiveRootWindow(), dumpevent(), Event, EventHandler, FixRootEvent(), GetTwmScreen(), GetTwmWindow(), MAX_X_EVENT, PlaceX, play_sound(), Scr, StashEventTime(), and Tmp_win.
Referenced by HandleEvents(), MoveMenu(), UpdateMenu(), and WMgrHandleButtonEvent().
Definition at line 343 of file event_core.c.
References dumpevent(), Event, EventHandler, FixRootEvent(), GetTwmScreen(), GetTwmWindow(), HandleExpose(), MAX_X_EVENT, menuFromFrameOrWindowOrTitlebar, PlaceX, play_sound(), Scr, StashEventTime(), and Tmp_win.
Referenced by f_movetitlebar_impl(), f_resize_impl(), movewindow(), and resizeFromCenter().
Definition at line 428 of file event_core.c.
References event_name_by_num(), PlaceX, and tracefile.
Referenced by DispatchEvent(), and DispatchEvent2().
Definition at line 175 of file event_core.c.
References AutoLowerWindow(), AutoRaiseWindow(), ColortableThrashing, CtwmNextEvent(), DispatchEvent(), dpy, enter_flag, enter_win, Event, InstallColormaps(), leave_flag, leave_win, lower_win, MAX_X_EVENT, PlaceX, raise_win, Scr, and WindowMoved.
Referenced by ctwm_main().
Definition at line 103 of file event_core.c.
References DragWindow, enter_flag, enter_win, EventHandler, HandleFocusChange(), HandleShapeNotify(), HandleUnknown(), HasShape, leave_flag, leave_win, lower_win, MAX_X_EVENT, PlaceX, raise_win, ResizeWindow, ShapeEventBase, and STDH.
Referenced by ctwm_main().
Definition at line 387 of file event_core.c.
References EventTime, and PlaceX.
Referenced by DispatchEvent(), and DispatchEvent2().
int ButtonPressed = -1 |
Definition at line 93 of file event_core.c.
Referenced by EF_main(), EwmhClientMessage_NET_CLOSE_WINDOW(), f_delete_impl(), f_deleteordestroy_impl(), f_destroy_impl(), f_hypermove_impl(), HandleButtonPress(), HandleButtonRelease(), MoveMenu(), and OccupyHandleButtonEvent().
Definition at line 94 of file event_core.c.
Referenced by EF_main(), f_resize_impl(), HandleButtonPress(), HandleButtonRelease(), movewindow(), resizeFromCenter(), and UpdateMenu().
bool ColortableThrashing |
Definition at line 90 of file event_core.c.
Referenced by HandleColormapNotify(), HandleEvents(), and InstallColormaps().
int Context = -1 |
Definition at line 65 of file event_core.c.
Referenced by f_resize_impl(), f_tinylower_impl(), f_tinyraise_impl(), HandleButtonPress(), HandleButtonRelease(), HandleEnterNotify(), HandleKeyPress(), PopDownMenu(), and raise_handler().
int CurrentDragX |
Definition at line 76 of file event_core.c.
Referenced by HandleButtonPress(), HandleButtonRelease(), and movewindow().
int CurrentDragY |
Definition at line 77 of file event_core.c.
Referenced by HandleButtonPress(), HandleButtonRelease(), and movewindow().
Definition at line 75 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonRelease(), and movewindow().
Definition at line 74 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonRelease(), movewindow(), and resizeFromCenter().
Definition at line 73 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonRelease(), movewindow(), and resizeFromCenter().
Window DragWindow |
Definition at line 68 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonPress(), HandleButtonRelease(), InitEvents(), and movewindow().
int DragX |
Definition at line 71 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonRelease(), and movewindow().
int DragY |
Definition at line 72 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonRelease(), and movewindow().
bool enter_flag |
Definition at line 82 of file event_core.c.
Referenced by AutoLowerWindow(), AutoRaiseWindow(), HandleButtonRelease(), HandleEnterNotify(), HandleEvents(), InitEvents(), remove_window_from_ring(), and SetRaiseWindow().
TwmWindow* enter_win |
Definition at line 84 of file event_core.c.
Referenced by AutoLowerWindow(), AutoRaiseWindow(), HandleButtonRelease(), HandleEnterNotify(), HandleEvents(), InitEvents(), remove_window_from_ring(), and SetRaiseWindow().
XEvent Event |
Definition at line 66 of file event_core.c.
Referenced by DispatchEvent(), DispatchEvent2(), do_key_menu(), do_menu(), f_hypermove_impl(), f_movetitlebar_impl(), f_resize_impl(), HandleButtonPress(), HandleButtonRelease(), HandleCirculateNotify(), HandleClientMessage(), HandleColormapNotify(), HandleConfigureRequest(), HandleCreateNotify(), HandleEnterNotify(), HandleEvents(), HandleExpose(), HandleFocusChange(), HandleKeyPress(), HandleKeyRelease(), HandleLeaveNotify(), HandleMapRequest(), HandleMotionNotify(), HandlePropertyNotify(), HandleShapeNotify(), HandleUnknown(), HandleUnmapNotify(), HandleVisibilityNotify(), MoveMenu(), movewindow(), OtpCirculateSubwindows(), resizeFromCenter(), SimulateMapRequest(), UpdateMenu(), WarpCursorToDefaultEntry(), and WMgrHandleButtonEvent().
event_proc EventHandler[256] |
Definition at line 64 of file event_core.c.
Referenced by DispatchEvent(), DispatchEvent2(), f_movetitlebar_impl(), f_resize_impl(), HandleButtonRelease(), InitEvents(), and movewindow().
Time EventTime = CurrentTime |
Definition at line 79 of file event_core.c.
Referenced by Animate(), EwmhReplaceWM(), f_delete_impl(), f_deleteordestroy_impl(), f_saveyourself_impl(), FocusOnRoot(), GenerateTimestamp(), Iconify(), StashEventTime(), synth_btnevent_for_moveresize(), UnmapTransients(), and WarpToWindow().
bool leave_flag |
Definition at line 83 of file event_core.c.
Referenced by AutoLowerWindow(), HandleButtonRelease(), HandleEvents(), HandleLeaveNotify(), InitEvents(), remove_window_from_ring(), and SetRaiseWindow().
TwmWindow * leave_win |
Definition at line 84 of file event_core.c.
Referenced by AutoLowerWindow(), HandleButtonRelease(), HandleEvents(), HandleLeaveNotify(), InitEvents(), remove_window_from_ring(), and SetRaiseWindow().
TwmWindow * lower_win |
Definition at line 84 of file event_core.c.
Referenced by AutoLowerWindow(), HandleButtonRelease(), HandleEvents(), HandleLeaveNotify(), InitEvents(), remove_window_from_ring(), and SetRaiseWindow().
int origDragX |
Definition at line 69 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonPress(), movewindow(), and resizeFromCenter().
int origDragY |
Definition at line 70 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonPress(), movewindow(), and resizeFromCenter().
TwmWindow * raise_win |
Definition at line 84 of file event_core.c.
Referenced by AutoLowerWindow(), AutoRaiseWindow(), HandleButtonRelease(), HandleEnterNotify(), HandleEvents(), InitEvents(), remove_window_from_ring(), and SetRaiseWindow().
TwmWindow* Tmp_win |
Definition at line 91 of file event_core.c.
Referenced by apply_window_icon_name(), DispatchEvent(), DispatchEvent2(), HandleButtonPress(), HandleButtonRelease(), HandleClientMessage(), HandleConfigureRequest(), HandleDestroyNotify(), HandleEnterNotify(), HandleExpose(), HandleFocusChange(), HandleFocusIn(), HandleFocusOut(), HandleKeyPress(), HandleKeyRelease(), HandleLeaveNotify(), HandleMapNotify(), HandleMapRequest(), HandleMotionNotify(), HandlePropertyNotify(), HandleShapeNotify(), HandleUnmapNotify(), LastFocusEvent(), remove_window_from_ring(), and WarpAlongRing().