Lines Matching refs:tmp
408 WList *tmp = NULL;
427 if((tmp = Current->next) == NULL) {
428 tmp = ip->first;
434 if((tmp = Current->prev) == NULL) {
435 tmp = ip->last;
483 for(tmp = ip->first; tmp != NULL; tmp = tmp->next) {
484 if(tmp->row == new_row && tmp->col == new_col) {
498 if(tmp == NULL) {
505 XWarpPointer(dpy, None, tmp->icon, 0, 0, 0, 0, 5, 5);
508 if(tmp->twm->title_height) {
510 int x = tmp->twm->highlightxr;
511 XWarpPointer(dpy, None, tmp->twm->title_w, 0, 0, 0, 0,
516 XWarpPointer(dpy, None, tmp->twm->w, 0, 0, 0, 0, 5, 5);
540 WList *tmp = NULL;
554 tmp = Current;
560 if((tmp = tmp->next) == NULL) {
561 tmp = ip->first;
566 if((tmp = tmp->prev) == NULL) {
567 tmp = ip->last;
571 if(tmp->twm->mapped) {
575 if(tmp == orig) {
586 if(tmp == NULL) {
593 XWarpPointer(dpy, None, tmp->icon, 0, 0, 0, 0, 5, 5);
596 if(tmp->twm->title_height) {
597 XWarpPointer(dpy, None, tmp->twm->title_w, 0, 0, 0, 0,
598 tmp->twm->title_width / 2,
602 XWarpPointer(dpy, None, tmp->twm->w, 0, 0, 0, 0, 5, 5);
699 WList *tmp, *old;
734 tmp = NULL;
749 tmp = calloc(1, sizeof(WList));
750 tmp->iconmgr = ip;
751 tmp->twm = tmp_win;
753 InsertInIconManager(ip, tmp, tmp_win);
756 tmp->cp.fore = Scr->IconManagerC.fore;
757 tmp->cp.back = Scr->IconManagerC.back;
758 tmp->highlight = Scr->IconManagerHighlight;
761 &tmp_win->class, &tmp->cp.fore);
763 &tmp_win->class, &tmp->cp.back);
765 &tmp_win->class, &tmp->highlight);
775 GetShadeColors(&tmp->cp);
777 tmp->iconifypm = Create3DIconManagerIcon(tmp->cp);
788 tmp->me = ip->count;
789 tmp->x = -1;
790 tmp->y = -1;
791 tmp->height = -1;
792 tmp->width = -1;
797 attributes.background_pixel = tmp->cp.back;
798 attributes.border_pixel = tmp->cp.back;
805 tmp->w = XCreateWindow(dpy, ip->w, 0, 0, 1,
814 attributes.background_pixel = tmp->cp.back;
820 tmp->icon = XCreateWindow(dpy, tmp->w, 0, 0,
835 XMapWindow(dpy, tmp->w);
837 XSaveContext(dpy, tmp->w, TwmContext, (XPointer) tmp_win);
838 XSaveContext(dpy, tmp->w, ScreenContext, (XPointer) Scr);
839 XSaveContext(dpy, tmp->icon, TwmContext, (XPointer) tmp_win);
840 XSaveContext(dpy, tmp->icon, ScreenContext, (XPointer) Scr);
856 tmp->nextv = old;
857 old = tmp;
862 if(tmp == NULL) {
867 tmp_win->iconmanagerlist = tmp;
870 if(! visible(tmp->iconmgr->twm_win)) {
871 old = tmp;
872 tmp = tmp->nextv;
873 while(tmp != NULL) {
874 if(visible(tmp->iconmgr->twm_win)) {
877 old = tmp;
878 tmp = tmp->nextv;
880 if(tmp != NULL) {
881 old->nextv = tmp->nextv;
882 tmp->nextv = tmp_win->iconmanagerlist;
883 tmp_win->iconmanagerlist = tmp;
899 * tmp - the entry to insert
904 void InsertInIconManager(IconMgr *ip, WList *tmp, TwmWindow *tmp_win)
911 ip->first = tmp;
912 tmp->prev = NULL;
913 ip->last = tmp;
926 tmp->next = tmp1;
927 tmp->prev = tmp1->prev;
928 tmp1->prev = tmp;
929 if(tmp->prev == NULL) {
930 ip->first = tmp;
933 tmp->prev->next = tmp;
942 ip->last->next = tmp;
943 tmp->prev = ip->last;
944 ip->last = tmp;
948 void RemoveFromIconManager(IconMgr *ip, WList *tmp)
950 if(tmp->prev == NULL) {
951 ip->first = tmp->next;
954 tmp->prev->next = tmp->next;
957 if(tmp->next == NULL) {
958 ip->last = tmp->prev;
961 tmp->next->prev = tmp->prev;
964 /* pebl: If the list was the current and tmp was the last in the list
966 if(Current == tmp) {
985 WList *tmp, *tmp1, *save;
991 tmp = tmp_win->iconmanagerlist;
994 while(tmp != NULL) {
995 ip = tmp->iconmgr;
997 tmp1 = tmp;
998 tmp = tmp->nextv;
1001 RemoveFromIconManager(ip, tmp);
1003 XDeleteContext(dpy, tmp->icon, TwmContext);
1004 XDeleteContext(dpy, tmp->icon, ScreenContext);
1005 XDestroyWindow(dpy, tmp->icon);
1006 XDeleteContext(dpy, tmp->w, TwmContext);
1007 XDeleteContext(dpy, tmp->w, ScreenContext);
1008 XDestroyWindow(dpy, tmp->w);
1021 tmp1->nextv = tmp->nextv;
1024 save = tmp;
1025 tmp = tmp->nextv;
1050 void DrawIconManagerBorder(WList *tmp, bool fill)
1053 Draw3DBorder(tmp->w, 0, 0, tmp->width, tmp->height,
1054 Scr->IconManagerShadowDepth, tmp->cp,
1055 (tmp->active && Scr->Highlight ? on : off),
1059 XSetForeground(dpy, Scr->NormalGC, tmp->cp.fore);
1060 XDrawRectangle(dpy, tmp->w, Scr->NormalGC, 2, 2, tmp->width - 5,
1061 tmp->height - 5);
1064 (tmp->active && Scr->Highlight
1065 ? tmp->highlight : tmp->cp.back));
1067 XDrawRectangle(dpy, tmp->w, Scr->NormalGC, 0, 0, tmp->width - 1,
1068 tmp->height - 1);
1069 XDrawRectangle(dpy, tmp->w, Scr->NormalGC, 1, 1, tmp->width - 3,
1070 tmp->height - 3);
1148 WList *tmp;
1165 for(i = 0, tmp = ip->first; tmp != NULL; i++, tmp = tmp->next) {
1166 tmp->me = i;
1179 if(tmp->x != new_x || tmp->y != new_y ||
1180 tmp->width != wwidth || tmp->height != wheight) {
1181 XMoveResizeWindow(dpy, tmp->w, new_x, new_y, wwidth, wheight);
1182 if(tmp->height != wheight)
1183 XMoveWindow(dpy, tmp->icon, ICON_MGR_OBORDER + ICON_MGR_IBORDER,
1186 tmp->row = row - 1;
1187 tmp->col = col;
1188 tmp->x = new_x;
1189 tmp->y = new_y;
1190 tmp->width = wwidth;
1191 tmp->height = wheight;