CTWM
Loading...
Searching...
No Matches
/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)
char * AddToCaptiveList (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)

◆ AdoptWindow()

void AdoptWindow ( void )

Definition at line 690 of file captive.c.

References AdoptWindow(), dpy, RestartPreviousState, root, Scr, and SimulateMapRequest().

Referenced by AdoptWindow(), and f_adoptwindow_impl().

◆ CaptiveCtwmRootWindow()

Window CaptiveCtwmRootWindow ( Window window)
static

◆ ConfigureCaptiveRootWindow()

void ConfigureCaptiveRootWindow ( XEvent * ev)

Definition at line 641 of file captive.c.

References CLarg, ConfigureCaptiveRootWindow(), dpy, ProgramName, root, and Scr.

Referenced by ConfigureCaptiveRootWindow(), and DispatchEvent().

◆ DontRedirect()

bool DontRedirect ( Window window)
static

Definition at line 616 of file captive.c.

References DontRedirect(), and dpy.

Referenced by DontRedirect(), and RedirectToCaptive().

◆ freeCaptivesList()

void freeCaptivesList ( char ** clist)
static

Definition at line 251 of file captive.c.

References freeCaptivesList().

Referenced by AddToCaptiveList(), freeCaptivesList(), and RemoveFromCaptiveList().

◆ GetCaptiveCTWMUnderPointer()

CaptiveCTWM GetCaptiveCTWMUnderPointer ( void )

◆ GetCaptivesList()

char ** GetCaptivesList ( int scrnum)
static

Definition at line 200 of file captive.c.

References dpy, GetCaptivesList(), and root.

Referenced by AddToCaptiveList(), GetCaptivesList(), and RemoveFromCaptiveList().

◆ RedirectToCaptive()

bool RedirectToCaptive ( Window window)

Definition at line 60 of file captive.c.

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

Referenced by AddWindow(), and RedirectToCaptive().

◆ RemoveFromCaptiveList()

void RemoveFromCaptiveList ( const char * cptname)

◆ SetCaptivesList()

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

Definition at line 270 of file captive.c.

References dpy, root, and SetCaptivesList().

Referenced by AddToCaptiveList(), RemoveFromCaptiveList(), and SetCaptivesList().

◆ SetNoRedirect()

void SetNoRedirect ( Window window)

Definition at line 609 of file captive.c.

References dpy, and SetNoRedirect().

Referenced by f_hypermove_impl(), and SetNoRedirect().

◆ SetPropsIfCaptiveCtwm()

void SetPropsIfCaptiveCtwm ( TwmWindow * win)

Variable Documentation

◆ table

XrmOptionDescRec table[]
static
Initial value:
= {
{"-xrm", NULL, XrmoptionResArg, (XPointer) NULL},
}

Definition at line 51 of file captive.c.

Referenced by RedirectToCaptive(), and SetupOccupation().

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