13#include "ctwm_atoms.h"
63 if(scr->VirtualScreens ==
NULL) {
82 char *geometry = (
char *)
nptr->name;
84 unsigned int w = 0, h = 0;
88 if((
x < 0) || (
y < 0) || (w > scr->
rootw) || (h > scr->
rooth)) {
89 fprintf(
stderr,
"InitVirtualScreens : invalid geometry : %s\n", geometry);
114 if(
x == 0 &&
y == 0) {
120 fprintf(
stderr,
"no valid VirtualScreens found, exiting...\n");
149 for(vs =
Scr->vScreenList; vs !=
NULL; vs = vs->
next) {
151 if((
x >= vs->
x) && ((
x - vs->
x) < vs->
w) &&
152 (
y >= vs->
y) && ((
y - vs->
y) < vs->
h)) {
276 if(
tmp_win->UnmapByMovingFarAway) {
326 if(icon && icon->
w) {
352 if(
tmp_win->UnmapByMovingFarAway) {
365 if(!
tmp_win->DontSetInactive) {
389 if(
Scr->numVscreens > 1) {
void NewFontCursor(Cursor *cp, const char *str)
Window Root
Root window for the current vscreen.
VirtualScreen * vScreenList
Linked list of per-VS info.
VirtualScreen * currentvs
Currently active VS.
void IconUp(TwmWindow *tmp_win)
void IconDown(TwmWindow *tmp_win)
bool OtpCheckConsistency(void)
void ReparentWindowAndIcon(Display *display, TwmWindow *twm_win, Window parent, int win_x, int win_y, int icon_x, int icon_y)
int ReparentWindow(Display *display, TwmWindow *twm_win, WinType wintype, Window parent, int x, int y)
Info and control for each X Screen we control.
Pixel Black
Stash of "Black" X color for the screen.
int rootw
Copy of DisplayWidth(dpy, screen)
int rooth
Copy of DisplayHeight(dpy, screen)
Info and control for every X Window we take over.
struct VirtualScreen * next
struct WorkSpaceWindow * wsw
static void init_def_vscreen(ScreenInfo *scr)
void ReparentFrameAndIcon(TwmWindow *tmp_win)
char * CtwmGetVScreenMap(Display *display, Window rootw)
void Vanish(VirtualScreen *vs, TwmWindow *tmp_win)
bool CtwmSetVScreenMap(Display *display, Window rootw, struct VirtualScreen *firstvs)
static void DisplayWinUnchecked(VirtualScreen *vs, TwmWindow *tmp_win)
void DisplayWin(VirtualScreen *vs, TwmWindow *tmp_win)
void InitVirtualScreens(ScreenInfo *scr)
int restore_mask(Window w, long restore)
long mask_out_event(Window w, long ignore_event)
void SetMapStateProp(TwmWindow *tmp_win, int state)