CTWM
Loading...
Searching...
No Matches
Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/captive.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <X11/Xatom.h>
#include <X11/Xmu/WinUtil.h>
#include "captive.h"
#include "events.h"
#include "screen.h"
#include "ctwm_atoms.h"
#include "util.h"
#include "vscreen.h"
Include dependency graph for captive.c:

Go to the source code of this file.

Functions

static char ** GetCaptivesList (int scrnum)
 
static void SetCaptivesList (int scrnum, char **clist)
 
static void freeCaptivesList (char **clist)
 
static Window CaptiveCtwmRootWindow (Window window)
 
static bool DontRedirect (Window window)
 
bool RedirectToCaptive (Window window)
 
charAddToCaptiveList (const char *cptname)
 
void RemoveFromCaptiveList (const char *cptname)
 
void SetPropsIfCaptiveCtwm (TwmWindow *win)
 
CaptiveCTWM GetCaptiveCTWMUnderPointer (void)
 
void SetNoRedirect (Window window)
 
void ConfigureCaptiveRootWindow (XEvent *ev)
 
void AdoptWindow (void)
 

Variables

static Atom XA_WM_CTWM_ROOT_our_name
 
static XrmOptionDescRec table []
 

Function Documentation

◆ AddToCaptiveList()

char * AddToCaptiveList ( const char * cptname)

Definition at line 308 of file captive.c.

References dpy, freeCaptivesList(), GetCaptivesList(), PlaceX, root, Scr, SetCaptivesList(), and XA_WM_CTWM_ROOT_our_name.

Referenced by ctwm_main().

◆ AdoptWindow()

void AdoptWindow ( void )

Definition at line 690 of file captive.c.

References dpy, len, PlaceX, RestartPreviousState, root, Scr, and SimulateMapRequest().

Referenced by f_adoptwindow_impl().

◆ CaptiveCtwmRootWindow()

static Window CaptiveCtwmRootWindow ( Window window)
static

Definition at line 522 of file captive.c.

References dpy, len, and PlaceX.

Referenced by GetCaptiveCTWMUnderPointer(), and SetPropsIfCaptiveCtwm().

◆ ConfigureCaptiveRootWindow()

void ConfigureCaptiveRootWindow ( XEvent * ev)

Definition at line 641 of file captive.c.

References CLarg, dpy, PlaceX, ProgramName, root, Scr, x, and y.

Referenced by DispatchEvent().

◆ DontRedirect()

static bool DontRedirect ( Window window)
static

Definition at line 616 of file captive.c.

References dpy, len, and PlaceX.

Referenced by RedirectToCaptive().

◆ freeCaptivesList()

static void freeCaptivesList ( char ** clist)
static

Definition at line 251 of file captive.c.

References PlaceX.

Referenced by AddToCaptiveList(), and RemoveFromCaptiveList().

◆ GetCaptiveCTWMUnderPointer()

CaptiveCTWM GetCaptiveCTWMUnderPointer ( void )

Definition at line 550 of file captive.c.

References CaptiveCtwmRootWindow(), dpy, JunkMask, JunkRoot, JunkX, JunkY, PlaceX, root, and Scr.

Referenced by f_hypermove_impl().

◆ GetCaptivesList()

static char ** GetCaptivesList ( int scrnum)
static

Definition at line 200 of file captive.c.

References dpy, len, PlaceX, and root.

Referenced by AddToCaptiveList(), and RemoveFromCaptiveList().

◆ RedirectToCaptive()

bool RedirectToCaptive ( Window window)

Definition at line 60 of file captive.c.

References DontRedirect(), dpy, PlaceX, safe_strncpy(), Scr, and table.

Referenced by AddWindow().

◆ RemoveFromCaptiveList()

void RemoveFromCaptiveList ( const char * cptname)

Definition at line 425 of file captive.c.

References dpy, freeCaptivesList(), GetCaptivesList(), PlaceX, root, Scr, SetCaptivesList(), and XA_WM_CTWM_ROOT_our_name.

Referenced by DoShutdown().

◆ SetCaptivesList()

static void SetCaptivesList ( int scrnum,
char ** clist )
static

Definition at line 270 of file captive.c.

References dpy, len, PlaceX, and root.

Referenced by AddToCaptiveList(), and RemoveFromCaptiveList().

◆ SetNoRedirect()

void SetNoRedirect ( Window window)

Definition at line 609 of file captive.c.

References dpy, and PlaceX.

Referenced by f_hypermove_impl().

◆ SetPropsIfCaptiveCtwm()

void SetPropsIfCaptiveCtwm ( TwmWindow * win)

Definition at line 502 of file captive.c.

References CaptiveCtwmRootWindow(), dpy, TwmWindow::frame, PlaceX, and TwmWindow::w.

Referenced by AddWindow().

Variable Documentation

◆ table

XrmOptionDescRec table[]
static
Initial value:
= {
}
static int PlaceX
Definition add_window.c:82

Definition at line 51 of file captive.c.

Referenced by RedirectToCaptive().

◆ XA_WM_CTWM_ROOT_our_name

Atom XA_WM_CTWM_ROOT_our_name
static

Definition at line 48 of file captive.c.

Referenced by AddToCaptiveList(), and RemoveFromCaptiveList().