Lines Matching defs:wl

642 		for(WinList *wl = msw->wl; wl != NULL; wl = wl->next) {
643 TwmWindow *tmp_win = wl->twm_win;
644 wl->x = (int)(tmp_win->frame_x * wf);
645 wl->y = (int)(tmp_win->frame_y * hf);
646 wl->width = (unsigned int)((tmp_win->frame_width * wf) + 0.5);
647 wl->height = (unsigned int)((tmp_win->frame_height * hf) + 0.5);
648 XMoveResizeWindow(dpy, wl->w, wl->x, wl->y, wl->width, wl->height);
740 WinList *wl;
748 (XPointer *) &wl) == XCNOENT) {
751 if(wl && wl->twm_win && wl->twm_win->mapped) {
752 WMapRedrawName(vs, wl);
952 WinList *wl;
1010 if(XFindContext(dpy, sw, MapWListContext, (XPointer *) &wl) == XCNOENT) {
1013 win = wl->twm_win;
1120 attrs.background_pixel = wl->cp.back;
1121 attrs.border_pixel = wl->cp.back;
1129 WMapRedrawWindow(w, W0, H0, wl->cp, wl->twm_win->icon_name);
1218 WMapRedrawWindow(w, W0, H0, wl->cp,
1219 wl->twm_win->icon_name);
1336 (1 - Scr->BorderRight / (double) vs->w) - wl->width + XW - 2;
1349 * - wl->height + YW - 2;
1477 WMapRedrawName(vs, wl);
1586 OCCUPY(wl->twm_win, newws)) {
1617 OCCUPY(wl->twm_win, newws)) {
1667 WinList *wl;
1671 for(wl = vs->wsw->mswl[ws->number]->wl; wl != NULL; wl = wl->next) {
1672 if(win == wl->twm_win) {
1681 XMapWindow(dpy, wl->w);
1684 XMapRaised(dpy, wl->w);
1686 WMapRedrawName(vs, wl);
1739 WinList *wl;
1747 for(wl = vs->wsw->mswl[ws->number]->wl; wl != NULL; wl = wl->next) {
1748 if(win == wl->twm_win) {
1749 XUnmapWindow(dpy, wl->w);
1806 for(WinList *wl = msw->wl; wl != NULL; wl = wl->next) {
1807 if(win == wl->twm_win) {
1809 wl->x = (int)(x * wf);
1810 wl->y = (int)(y * hf);
1814 XMoveWindow(dpy, wl->w, wl->x, wl->y);
1817 wl->width = (unsigned int)((w * wf) + 0.5);
1818 wl->height = (unsigned int)((h * hf) + 0.5);
1820 wl->width -= 2;
1821 wl->height -= 2;
1823 if(wl->width < 1) {
1824 wl->width = 1;
1826 if(wl->height < 1) {
1827 wl->height = 1;
1829 XMoveResizeWindow(dpy, wl->w, wl->x, wl->y,
1830 wl->width, wl->height);
1886 WinList *wl;
1928 for(wl = msw->wl; wl != NULL; wl = wl->next) {
1931 fprintf(tracefile, "WMapRestack : wl = %p, twm_win = %p\n",
1932 (void *)wl, (void *)wl->twm_win);
1936 if(win == wl->twm_win) {
1938 smallws[j++] = wl->w;
1977 WinList *wl;
1981 for(wl = vs->wsw->mswl[ws->number]->wl; wl != NULL; wl = wl->next) {
1982 if(win == wl->twm_win) {
1983 WMapRedrawName(vs, wl);
1997 WMapRedrawName(VirtualScreen *vs, WinList *wl)
1999 ColorPair cp = wl->cp;
2001 if(Scr->ReverseCurrentWorkspace && wl->wlist == vs->wsw->currentwspc) {
2004 WMapRedrawWindow(wl->w, wl->width, wl->height, cp, wl->twm_win->icon_name);
2145 WinList *wl;
2151 wl = malloc(sizeof(struct winList));
2152 wl->wlist = ws;
2153 wl->x = (int)(win->frame_x * wf);
2154 wl->y = (int)(win->frame_y * hf);
2155 wl->width = (unsigned int)((win->frame_width * wf) + 0.5);
2156 wl->height = (unsigned int)((win->frame_height * hf) + 0.5);
2157 wl->cp = cp;
2158 wl->twm_win = win;
2164 wl->width -= 2;
2165 wl->height -= 2;
2167 if(wl->width < 1) {
2168 wl->width = 1;
2170 if(wl->height < 1) {
2171 wl->height = 1;
2175 wl->w = XCreateSimpleWindow(dpy, msw->w, wl->x, wl->y,
2176 wl->width, wl->height, bw,
2192 XChangeWindowAttributes(dpy, wl->w, attrmask, &attr);
2196 XSelectInput(dpy, wl->w, ExposureMask);
2197 XSaveContext(dpy, wl->w, TwmContext, (XPointer) vs->wsw->twm_win);
2198 XSaveContext(dpy, wl->w, ScreenContext, (XPointer) Scr);
2199 XSaveContext(dpy, wl->w, MapWListContext, (XPointer) wl);
2202 wl->next = msw->wl;
2203 msw->wl = wl;
2211 XMapWindow(dpy, wl->w);
2264 WinList **prev = &vs->wsw->mswl[ws->number]->wl;
2267 for(WinList *wl = *prev ; wl != NULL ; wl = wl->next) {
2268 if(win != wl->twm_win) {
2270 prev = &wl->next;
2275 *prev = wl->next;
2277 XDeleteContext(dpy, wl->w, TwmContext);
2278 XDeleteContext(dpy, wl->w, ScreenContext);
2279 XDeleteContext(dpy, wl->w, MapWListContext);
2280 XDestroyWindow(dpy, wl->w);
2281 free(wl);