|
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) |
| #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 |
| TwmWindow * | enter_win |
| TwmWindow * | raise_win |
| TwmWindow * | leave_win |
| TwmWindow * | lower_win |
| bool | ColortableThrashing |
| TwmWindow * | Tmp_win |
| int | ButtonPressed = -1 |
| bool | Cancel = false |
| #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) |
Referenced by CtwmNextEvent().
| #define STDH | ( | evt | ) |
Referenced by InitEvents().
|
static |
Definition at line 219 of file event_core.c.
References AnimateTimeout, AnimationActive, AnimationSpeed, handle_signal_flag(), MaybeAnimate, NEXTEVENT, SignalFlag, and TryToAnimate().
Referenced by HandleEvents().
| bool DispatchEvent | ( | void | ) |
Definition at line 305 of file event_core.c.
References CLarg, ConfigureCaptiveRootWindow(), dumpevent(), Event, EventHandler, FixRootEvent(), GetTwmScreen(), GetTwmWindow(), MAX_X_EVENT, play_sound(), Scr, StashEventTime(), and Tmp_win.
Referenced by HandleEvents(), MoveMenu(), UpdateMenu(), and WMgrHandleButtonEvent().
| bool DispatchEvent2 | ( | void | ) |
Definition at line 343 of file event_core.c.
References dumpevent(), Event, EventHandler, FixRootEvent(), GetTwmScreen(), GetTwmWindow(), HandleExpose(), MAX_X_EVENT, menuFromFrameOrWindowOrTitlebar, play_sound(), Scr, StashEventTime(), and Tmp_win.
Referenced by f_movetitlebar_impl(), f_resize_impl(), movewindow(), and resizeFromCenter().
|
static |
Definition at line 428 of file event_core.c.
References event_name_by_num(), and tracefile.
Referenced by DispatchEvent(), and DispatchEvent2().
| void HandleEvents | ( | void | ) |
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, raise_win, Scr, and WindowMoved.
Referenced by ctwm_main().
| void InitEvents | ( | void | ) |
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, raise_win, ResizeWindow, ShapeEventBase, and STDH.
Referenced by ctwm_main().
|
static |
Definition at line 387 of file event_core.c.
References EventTime.
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().
| bool Cancel = false |
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().
| unsigned int DragBW |
Definition at line 75 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonRelease(), and movewindow().
| unsigned int DragHeight |
Definition at line 74 of file event_core.c.
Referenced by f_movetitlebar_impl(), HandleButtonRelease(), movewindow(), and resizeFromCenter().
| unsigned int DragWidth |
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().