vscreen.h revision 645f5050
1645f5050Syouri/* 2645f5050Syouri * [ ctwm ] 3645f5050Syouri * 4645f5050Syouri * Copyright 1992 Claude Lecommandeur. 5645f5050Syouri * 6645f5050Syouri * Permission to use, copy, modify and distribute this software [ctwm] and 7645f5050Syouri * its documentation for any purpose is hereby granted without fee, provided 8645f5050Syouri * that the above copyright notice appear in all copies and that both that 9645f5050Syouri * copyright notice and this permission notice appear in supporting documen- 10645f5050Syouri * tation, and that the name of Claude Lecommandeur not be used in adverti- 11645f5050Syouri * sing or publicity pertaining to distribution of the software without 12645f5050Syouri * specific, written prior permission. Claude Lecommandeur make no represen- 13645f5050Syouri * tations about the suitability of this software for any purpose. It is 14645f5050Syouri * provided "as is" without express or implied warranty. 15645f5050Syouri * 16645f5050Syouri * Claude Lecommandeur DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 17645f5050Syouri * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO 18645f5050Syouri * EVENT SHALL Claude Lecommandeur BE LIABLE FOR ANY SPECIAL, INDIRECT OR 19645f5050Syouri * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 20645f5050Syouri * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 21645f5050Syouri * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 22645f5050Syouri * PERFORMANCE OF THIS SOFTWARE. 23645f5050Syouri * 24645f5050Syouri * Author: Claude Lecommandeur [ lecom@sic.epfl.ch ][ April 1992 ] 25645f5050Syouri */ 26645f5050Syouri#include "types.h" 27645f5050Syouri 28645f5050Syouri#ifndef _VSCREEN_ 29645f5050Syouri#define _VSCREEN_ 30645f5050Syouri 31645f5050Syouristruct virtualScreen { 32645f5050Syouri int x, y, w, h; /* x,y relative to XineramaRoot */ 33645f5050Syouri Window window; 34645f5050Syouri /* Boolean main; */ 35645f5050Syouri struct WorkSpaceWindow *wsw; 36645f5050Syouri struct virtualScreen *next; 37645f5050Syouri}; 38645f5050Syouri 39645f5050Syourivoid InitVirtualScreens (ScreenInfo *scr); 40645f5050SyourivirtualScreen *findIfVScreenOf (int x, int y); 41645f5050SyourivirtualScreen *getVScreenOf (int x, int y); 42645f5050SyouriBool CtwmGetVScreenMap (Display *display, Window rootw, 43645f5050Syouri char *outbuf, int *outbuf_len); 44645f5050SyouriBool CtwmSetVScreenMap(Display *display, Window rootw, 45645f5050Syouri struct virtualScreen *firstvs); 46645f5050Syouri 47645f5050Syouri#endif /* -VSCREEN- */ 48