vscreen.h revision 645f5050
1/*
2 *  [ ctwm ]
3 *
4 *  Copyright 1992 Claude Lecommandeur.
5 *
6 * Permission to use, copy, modify  and distribute this software  [ctwm] and
7 * its documentation for any purpose is hereby granted without fee, provided
8 * that the above  copyright notice appear  in all copies and that both that
9 * copyright notice and this permission notice appear in supporting documen-
10 * tation, and that the name of  Claude Lecommandeur not be used in adverti-
11 * sing or  publicity  pertaining to  distribution of  the software  without
12 * specific, written prior permission. Claude Lecommandeur make no represen-
13 * tations  about the suitability  of this software  for any purpose.  It is
14 * provided "as is" without express or implied warranty.
15 *
16 * Claude Lecommandeur DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 * INCLUDING ALL  IMPLIED WARRANTIES OF  MERCHANTABILITY AND FITNESS.  IN NO
18 * EVENT SHALL  Claude Lecommandeur  BE LIABLE FOR ANY SPECIAL,  INDIRECT OR
19 * CONSEQUENTIAL  DAMAGES OR ANY  DAMAGES WHATSOEVER  RESULTING FROM LOSS OF
20 * USE, DATA  OR PROFITS,  WHETHER IN AN ACTION  OF CONTRACT,  NEGLIGENCE OR
21 * OTHER  TORTIOUS ACTION,  ARISING OUT OF OR IN  CONNECTION WITH THE USE OR
22 * PERFORMANCE OF THIS SOFTWARE.
23 *
24 * Author:  Claude Lecommandeur [ lecom@sic.epfl.ch ][ April 1992 ]
25 */
26#include "types.h"
27
28#ifndef _VSCREEN_
29#define _VSCREEN_
30
31struct virtualScreen {
32  int   x, y, w, h;		/* x,y relative to XineramaRoot */
33  Window window;
34  /* Boolean main; */
35  struct WorkSpaceWindow *wsw;
36  struct virtualScreen *next;
37};
38
39void InitVirtualScreens (ScreenInfo *scr);
40virtualScreen *findIfVScreenOf (int x, int y);
41virtualScreen *getVScreenOf (int x, int y);
42Bool CtwmGetVScreenMap (Display *display, Window rootw,
43			char *outbuf, int *outbuf_len);
44Bool CtwmSetVScreenMap(Display *display, Window rootw,
45		       struct virtualScreen *firstvs);
46
47#endif /* -VSCREEN- */
48