CTWM
Loading...
Searching...
No Matches
Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/workspace_manager.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <X11/Xatom.h>
#include "ctwm_atoms.h"
#include "util.h"
#include "animate.h"
#include "screen.h"
#include "add_window.h"
#include "events.h"
#include "otp.h"
#include "cursor.h"
#include "image.h"
#include "drawing.h"
#include "list.h"
#include "occupation.h"
#include "vscreen.h"
#include "win_decorations.h"
#include "win_iconify.h"
#include "win_ops.h"
#include "win_utils.h"
#include "workspace_manager.h"
#include "workspace_utils.h"
#include "xparsegeometry.h"
#include "gram.tab.h"
Include dependency graph for workspace_manager.c:

Go to the source code of this file.

Functions

static void CreateWorkSpaceManagerWindow (VirtualScreen *vs)
 
static void ResizeWorkSpaceManager (VirtualScreen *vs, TwmWindow *win)
 
static void PaintWorkSpaceManagerBorder (VirtualScreen *vs)
 
static void wmap_mapwin_backend (TwmWindow *win, bool handleraise)
 
static void WMapRedrawWindow (Window window, int width, int height, ColorPair cp, const char *label)
 
static void InvertColorPair (ColorPair *cp)
 
void InitWorkSpaceManagerContext (void)
 
void ConfigureWorkSpaceManager (ScreenInfo *scr)
 Prep up structures for WSM windows in each VS.
 
void CreateWorkSpaceManager (void)
 
void PaintWorkSpaceManager (VirtualScreen *vs)
 
void WMgrHandleExposeEvent (VirtualScreen *vs, XEvent *event)
 
void WMgrToggleState (VirtualScreen *vs)
 
void WMgrSetMapState (VirtualScreen *vs)
 
void WMgrSetButtonsState (VirtualScreen *vs)
 
void WMgrHandleKeyReleaseEvent (VirtualScreen *vs, XEvent *event)
 
void WMgrHandleKeyPressEvent (VirtualScreen *vs, XEvent *event)
 
void WMgrHandleButtonEvent (VirtualScreen *vs, XEvent *event)
 
void WMapMapWindow (TwmWindow *win)
 
void WMapDeIconify (TwmWindow *win)
 
void WMapIconify (TwmWindow *win)
 
void WMapSetupWindow (TwmWindow *win, int x, int y, int w, int h)
 
void WMapRaiseLower (TwmWindow *win)
 
void WMapLower (TwmWindow *win)
 
void WMapRaise (TwmWindow *win)
 
void WMapRestack (WorkSpace *ws)
 
void WMapUpdateIconName (TwmWindow *win)
 
void WMapRedrawName (VirtualScreen *vs, WinList *wl)
 
void WMapAddWindow (TwmWindow *win)
 
void WMapAddWindowToWorkspace (TwmWindow *win, WorkSpace *ws)
 
void WMapRemoveWindow (TwmWindow *win)
 
void WMapRemoveWindowFromWorkspace (TwmWindow *win, WorkSpace *ws)
 
bool WMapWindowMayBeAdded (TwmWindow *win)
 

Variables

bool useBackgroundInfo
 
static XContext MapWListContext = None
 
static Cursor handCursor = None
 

Function Documentation

◆ ConfigureWorkSpaceManager()

void ConfigureWorkSpaceManager ( ScreenInfo * scr)

Prep up structures for WSM windows in each VS.

Called (for each Screen) in startup after InitVirtualScreens() has setup the VS stuff (and after config file processing). This also retrieves info for each vs about which workspace is active, if available (from restarting ourself, etc).

XXX Passed param isn't quite complete, as we call some funcs that use global Scr...

Definition at line 91 of file workspace_manager.c.

References CtwmGetVScreenMap(), WorkSpaceWindow::currentwspc, dpy, GetWorkspace(), WorkSpaceMgr::initialstate, WorkSpace::next, PlaceX, Scr, WorkSpaceWindow::state, ScreenInfo::vScreenList, and ScreenInfo::workSpaceMgr.

Referenced by ctwm_main().

◆ CreateWorkSpaceManager()

void CreateWorkSpaceManager ( void )

◆ CreateWorkSpaceManagerWindow()

static void CreateWorkSpaceManagerWindow ( VirtualScreen * vs)
static

◆ InitWorkSpaceManagerContext()

void InitWorkSpaceManagerContext ( void )

Definition at line 72 of file workspace_manager.c.

References MapWListContext, and PlaceX.

Referenced by ctwm_main().

◆ InvertColorPair()

static void InvertColorPair ( ColorPair * cp)
static

Definition at line 2306 of file workspace_manager.c.

References ColorPair::back, ColorPair::fore, PlaceX, ColorPair::shadc, and ColorPair::shadd.

Referenced by WMapRedrawName().

◆ PaintWorkSpaceManager()

void PaintWorkSpaceManager ( VirtualScreen * vs)

◆ PaintWorkSpaceManagerBorder()

static void PaintWorkSpaceManagerBorder ( VirtualScreen * vs)
static

◆ ResizeWorkSpaceManager()

static void ResizeWorkSpaceManager ( VirtualScreen * vs,
TwmWindow * win )
static

◆ wmap_mapwin_backend()

static void wmap_mapwin_backend ( TwmWindow * win,
bool handleraise )
static

◆ WMapAddWindow()

void WMapAddWindow ( TwmWindow * win)

Definition at line 2099 of file workspace_manager.c.

References OCCUPY, PlaceX, Scr, WMapAddWindowToWorkspace(), and WMapWindowMayBeAdded().

Referenced by AddWindow().

◆ WMapAddWindowToWorkspace()

void WMapAddWindowToWorkspace ( TwmWindow * win,
WorkSpace * ws )

◆ WMapDeIconify()

void WMapDeIconify ( TwmWindow * win)

Definition at line 1718 of file workspace_manager.c.

References TwmWindow::vs, and wmap_mapwin_backend().

Referenced by ReMapOne().

◆ WMapIconify()

void WMapIconify ( TwmWindow * win)

◆ WMapLower()

void WMapLower ( TwmWindow * win)

Definition at line 1864 of file workspace_manager.c.

References WMapRaiseLower().

Referenced by AutoLowerWindow(), f_lower_impl(), and f_tinylower_impl().

◆ WMapMapWindow()

void WMapMapWindow ( TwmWindow * win)

Definition at line 1704 of file workspace_manager.c.

References wmap_mapwin_backend().

Referenced by HandleMapRequest().

◆ WMapRaise()

void WMapRaise ( TwmWindow * win)

◆ WMapRaiseLower()

void WMapRaiseLower ( TwmWindow * win)

Definition at line 1852 of file workspace_manager.c.

References OCCUPY, PlaceX, Scr, and WMapRestack().

Referenced by f_raiselower_impl(), WMapLower(), and WMapRaise().

◆ WMapRedrawName()

void WMapRedrawName ( VirtualScreen * vs,
WinList * wl )

◆ WMapRedrawWindow()

static void WMapRedrawWindow ( Window window,
int width,
int height,
ColorPair cp,
const char * label )
static

◆ WMapRemoveWindow()

void WMapRemoveWindow ( TwmWindow * win)

Definition at line 2224 of file workspace_manager.c.

References dpy, OCCUPY, occupyWin, PlaceX, Scr, and WMapRemoveWindowFromWorkspace().

Referenced by HandleDestroyNotify().

◆ WMapRemoveWindowFromWorkspace()

void WMapRemoveWindowFromWorkspace ( TwmWindow * win,
WorkSpace * ws )

◆ WMapRestack()

void WMapRestack ( WorkSpace * ws)

◆ WMapSetupWindow()

void WMapSetupWindow ( TwmWindow * win,
int x,
int y,
int w,
int h )

◆ WMapUpdateIconName()

void WMapUpdateIconName ( TwmWindow * win)

◆ WMapWindowMayBeAdded()

bool WMapWindowMayBeAdded ( TwmWindow * win)

◆ WMgrHandleButtonEvent()

void WMgrHandleButtonEvent ( VirtualScreen * vs,
XEvent * event )

◆ WMgrHandleExposeEvent()

void WMgrHandleExposeEvent ( VirtualScreen * vs,
XEvent * event )

◆ WMgrHandleKeyPressEvent()

void WMgrHandleKeyPressEvent ( VirtualScreen * vs,
XEvent * event )

◆ WMgrHandleKeyReleaseEvent()

void WMgrHandleKeyReleaseEvent ( VirtualScreen * vs,
XEvent * event )

Definition at line 822 of file workspace_manager.c.

References PlaceX, Scr, and WMgrToggleState().

Referenced by HandleKeyRelease().

◆ WMgrSetButtonsState()

void WMgrSetButtonsState ( VirtualScreen * vs)

◆ WMgrSetMapState()

void WMgrSetMapState ( VirtualScreen * vs)

◆ WMgrToggleState()

void WMgrToggleState ( VirtualScreen * vs)

Variable Documentation

◆ handCursor

Cursor handCursor = None
static

Definition at line 55 of file workspace_manager.c.

Referenced by CreateWorkSpaceManager(), and WMapAddWindowToWorkspace().

◆ MapWListContext

XContext MapWListContext = None
static

◆ useBackgroundInfo

bool useBackgroundInfo
extern