Lines Matching refs:vs

23 static void DisplayWinUnchecked(VirtualScreen *vs, TwmWindow *tmp_win);
28 VirtualScreen *vs = malloc(sizeof(VirtualScreen));
30 vs->x = 0;
31 vs->y = 0;
32 vs->w = scr->rootw;
33 vs->h = scr->rooth;
34 vs->window = scr->Root;
35 vs->next = NULL;
36 vs->wsw = 0;
37 scr->vScreenList = vs;
38 scr->currentvs = vs;
81 VirtualScreen *vs;
92 vs = malloc(sizeof(VirtualScreen));
93 vs->x = x;
94 vs->y = y;
95 vs->w = w;
96 vs->h = h;
97 vs->window = XCreateWindow(dpy, Scr->Root, x, y, w, h,
100 vs->wsw = 0;
103 XMapWindow(dpy, vs->window);
104 XChangeProperty(dpy, vs->window, XA_WM_VIRTUALROOT, XA_STRING, 8,
107 vs->next = scr->vScreenList;
108 scr->vScreenList = vs;
115 vs00 = vs;
148 VirtualScreen *vs;
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)) {
153 return vs;
201 struct VirtualScreen *vs;
208 for(vs = firstvs; vs; vs = vs->next) {
212 if(vs->wsw && vs->wsw->currentwspc && vs->wsw->currentwspc->name) {
213 strcat(buf, vs->wsw->currentwspc->name);
232 DisplayWin(VirtualScreen *vs, TwmWindow *tmp_win)
235 DisplayWinUnchecked(vs, tmp_win);
240 DisplayWinUnchecked(VirtualScreen *vs, TwmWindow *tmp_win)
246 if(vs && tmp_win->vs) {
251 tmp_win->vs = vs;
281 if(vs) {
282 XReparentWindow(dpy, tmp_win->frame, vs->window,
315 VirtualScreen *vs = tmp_win->vs; /* which virtual screen we want it in */
318 if(vs != tmp_win->parent_vs) {
322 assert(vs != NULL);
324 tmp_win->parent_vs = vs;
327 ReparentWindowAndIcon(dpy, tmp_win, vs->window,
332 ReparentWindow(dpy, tmp_win, WinWin, vs->window,
344 Vanish(VirtualScreen *vs, TwmWindow *tmp_win)
347 if(vs && tmp_win->vs && tmp_win->vs != vs) {
399 if(firstvs && firstvs != vs) {
400 tmp_win->vs = firstvs;
407 tmp_win->vs = NULL;