~rhialto/ctwm/smallbeer

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright 1992 Claude Lecommandeur.
 */
#ifndef _CTWM_VSCREEN_H
#define _CTWM_VSCREEN_H

struct VirtualScreen {
	int   x, y, w, h;             /* x,y relative to XineramaRoot */
	Window window;
	/* Boolean main; */
	struct WorkSpaceWindow *wsw;
	struct VirtualScreen *next;
};

void InitVirtualScreens(ScreenInfo *scr);
VirtualScreen *findIfVScreenOf(int x, int y);
VirtualScreen *getVScreenOf(int x, int y);
char *CtwmGetVScreenMap(Display *display, Window rootw);
bool CtwmSetVScreenMap(Display *display, Window rootw,
                       struct VirtualScreen *firstvs);

void DisplayWin(VirtualScreen *vs, TwmWindow *tmp_win);
void ReparentFrameAndIcon(TwmWindow *tmp_win);
void Vanish(VirtualScreen *vs, TwmWindow *tmp_win);

#endif /* _CTWM_VSCREEN_H */