CTWM
Loading...
Searching...
No Matches
Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/functions.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include "events.h"
#include "functions.h"
#include "functions_defs.h"
#include "functions_deferral.h"
#include "functions_internal.h"
#include "screen.h"
#include "functions_dispatch_execution.h"
Include dependency graph for functions.c:

Go to the source code of this file.

Functions

static void f_nop_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
static void f_separator_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
static void f_title_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
static void f_deltastop_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
static void f_function_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
static bool EF_main (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
static bool DeferExecution (int context, int func, Cursor cursor)
 
static bool should_defer (int func)
 
static Cursor defer_cursor (int func)
 
static Cursor NeedToDefer (MenuRoot *root)
 
void ExecuteFunction (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void ReGrab (void)
 

Variables

int RootFunction = 0
 
bool WindowMoved = false
 
bool func_reset_cursor
 
Time last_time = 0
 
static Cursor LastCursor
 

Function Documentation

◆ defer_cursor()

static Cursor defer_cursor ( int func)
static

Definition at line 427 of file functions.c.

References PlaceX, and Scr.

Referenced by EF_main(), and NeedToDefer().

◆ DeferExecution()

static bool DeferExecution ( int context,
int func,
Cursor cursor )
static

Definition at line 367 of file functions.c.

References C_ALTERNATE, C_ROOT, dpy, LastCursor, PlaceX, RootFunction, and Scr.

Referenced by EF_main().

◆ EF_main()

static bool EF_main ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )
static

◆ ExecuteFunction()

void ExecuteFunction ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

◆ f_deltastop_impl()

static void f_deltastop_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )
static

Definition at line 516 of file functions.c.

References PlaceX.

◆ f_function_impl()

static void f_function_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )
static

Definition at line 522 of file functions.c.

References PlaceX.

◆ f_nop_impl()

static void f_nop_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )
static

Definition at line 496 of file functions.c.

References PlaceX.

◆ f_separator_impl()

static void f_separator_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )
static

Definition at line 502 of file functions.c.

References PlaceX.

◆ f_title_impl()

static void f_title_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )
static

Definition at line 508 of file functions.c.

References PlaceX.

◆ NeedToDefer()

static Cursor NeedToDefer ( MenuRoot * root)
static

Definition at line 466 of file functions.c.

References defer_cursor(), MenuRoot::first, PlaceX, root, Scr, and should_defer().

Referenced by EF_main().

◆ ReGrab()

void ReGrab ( void )

Definition at line 345 of file functions.c.

References dpy, LastCursor, PlaceX, and Scr.

Referenced by AddWindow().

◆ should_defer()

static bool should_defer ( int func)
static

Definition at line 413 of file functions.c.

References PlaceX.

Referenced by EF_main(), and NeedToDefer().

Variable Documentation

◆ func_reset_cursor

bool func_reset_cursor

Definition at line 65 of file functions.c.

Referenced by EF_main(), f_altcontext_impl(), f_altkeymap_impl(), f_resize_impl(), and movewindow().

◆ last_time

Time last_time = 0

Definition at line 71 of file functions.c.

Referenced by f_raiseorsqueeze_impl(), and movewindow().

◆ LastCursor

Cursor LastCursor
static

Definition at line 342 of file functions.c.

Referenced by DeferExecution(), and ReGrab().

◆ RootFunction

int RootFunction = 0

◆ WindowMoved

bool WindowMoved = false