Lines Matching refs:vs

41  * Move the display (of a given vs) over to a new workspace.
44 GotoWorkSpace(VirtualScreen *vs, WorkSpace *ws)
67 oldws = vs->wsw->currentwspc;
76 XSetWindowBackground(dpy, vs->window, newws->backcp.back);
79 XSetWindowBackgroundPixmap(dpy, vs->window, newws->image->pixmap);
81 XClearWindow(dpy, vs->window);
103 if(!twmWin->vs) {
104 DisplayWin(vs, twmWin);
120 if(twmWin->vs == vs) {
123 Vanish(vs, twmWin);
134 if(tvs == vs) { /* no, not back on the old one */
190 vs->wsw->currentwspc = newws;
191 if(Scr->ReverseCurrentWorkspace && vs->wsw->state == WMS_map) {
192 MapSubwindow *msw = vs->wsw->mswl [oldws->number];
194 WMapRedrawName(vs, winl);
196 msw = vs->wsw->mswl [newws->number];
198 WMapRedrawName(vs, winl);
201 else if(vs->wsw->state == WMS_buttons) {
202 ButtonSubwindow *bsw = vs->wsw->bswl [oldws->number];
203 PaintWsButton(WSPCWINDOW, vs, bsw->w, oldws->label, oldws->cp, off);
204 bsw = vs->wsw->bswl [newws->number];
205 PaintWsButton(WSPCWINDOW, vs, bsw->w, newws->label, newws->cp, on);
211 oldw = vs->wsw->mswl [oldws->number]->w;
212 neww = vs->wsw->mswl [newws->number]->w;
307 * Simplify redundant checks. If no multiple workspaces, or no vs given
314 if(!vs) { \
320 GotoWorkSpaceByName(VirtualScreen *vs, const char *wname)
330 GotoWorkSpace(vs, ws);
335 GotoWorkSpaceByNumber(VirtualScreen *vs, int workspacenum)
349 GotoWorkSpace(vs, ws);
354 GotoPrevWorkSpace(VirtualScreen *vs)
366 while((ws2 != vs->wsw->currentwspc) && (ws2 != NULL)) {
370 GotoWorkSpace(vs, ws1);
375 GotoNextWorkSpace(VirtualScreen *vs)
381 ws = vs->wsw->currentwspc;
383 GotoWorkSpace(vs, ws);
388 GotoRightWorkSpace(VirtualScreen *vs)
395 ws = vs->wsw->currentwspc;
407 GotoWorkSpaceByNumber(vs, number);
412 GotoLeftWorkSpace(VirtualScreen *vs)
419 ws = vs->wsw->currentwspc;
427 GotoWorkSpaceByNumber(vs, number);
432 GotoUpWorkSpace(VirtualScreen *vs)
439 ws = vs->wsw->currentwspc;
452 GotoWorkSpaceByNumber(vs, number);
457 GotoDownWorkSpace(VirtualScreen *vs)
464 ws = vs->wsw->currentwspc;
472 GotoWorkSpaceByNumber(vs, number);
491 ShowBackground(VirtualScreen *vs, int newstate)
502 if(twmWin->savevs == vs) {
503 DisplayWin(vs, twmWin);
511 if(twmWin->vs == vs
517 twmWin->savevs = twmWin->vs;
518 Vanish(vs, twmWin);
534 GetCurrentWorkSpaceName(VirtualScreen *vs)
539 if(!vs) {
540 vs = Scr->vScreenList;
542 return vs->wsw->currentwspc->name;