Lines Matching refs:ip

333 		IconMgr *ip, *previ, *p = NULL;
351 for(ip = imfirst->next; ip != NULL; ip = ip->next) {
354 *p = *ip;
363 ip->nextv = p;
370 for(ip = ws->iconmgr; ip != NULL; ip = ip->next) {
371 ip->lasti = p;
377 * Scr->iconmgr so the ip->nextv rewrites are correct above; we
407 IconMgr *ip;
419 ip = Current->iconmgr;
428 tmp = ip->first;
435 tmp = ip->last;
468 new_row = ip->cur_rows - 1;
471 new_col = ip->cur_columns - 1;
473 if(new_row >= ip->cur_rows) {
476 if(new_col >= ip->cur_columns) {
483 for(tmp = ip->first; tmp != NULL; tmp = tmp->next) {
503 if(ip->twm_win->mapped) {
504 OtpRaise(ip->twm_win, WinWin);
539 IconMgr *ip;
551 ip = Current->iconmgr;
561 tmp = ip->first;
567 tmp = ip->last;
591 if(ip->twm_win->mapped) {
592 OtpRaise(ip->twm_win, WinWin);
623 IconMgr *ip, *tmp_ip = NULL;
635 #define TEST(ip) if ((ip)->count != 0 && (ip)->twm_win->mapped) \
638 ip = Current->iconmgr;
639 for(tmp_ip = ITER(ip); tmp_ip; tmp_ip = ITER(tmp_ip)) {
644 int origscreen = ip->scr->screen;
700 IconMgr *ip;
723 if((ip = (IconMgr *)LookInList(Scr->IconMgrs, tmp_win->name,
726 ip = Scr->workSpaceMgr.workSpaceList->iconmgr;
729 ip = Scr->iconmgr;
736 while(ip != NULL) {
742 if((tmp_win->occupation & ip->twm_win->occupation) == 0) {
744 ip = ip->nextv;
750 tmp->iconmgr = ip;
753 InsertInIconManager(ip, tmp, tmp_win);
787 ip->height = h * ip->count;
788 tmp->me = ip->count;
805 tmp->w = XCreateWindow(dpy, ip->w, 0, 0, 1,
830 ip->count += 1;
831 PackIconManager(ip);
842 if(!ip->twm_win->isicon) {
843 if(visible(ip->twm_win)) {
844 SetMapStateProp(ip->twm_win, NormalState);
845 XMapWindow(dpy, ip->w);
846 XMapWindow(dpy, ip->twm_win->frame);
848 ip->twm_win->mapped = true;
858 ip = ip->nextv;
898 * ip - the icon manager pointer
904 void InsertInIconManager(IconMgr *ip, WList *tmp, TwmWindow *tmp_win)
910 if(ip->first == NULL) {
911 ip->first = tmp;
913 ip->last = tmp;
917 for(tmp1 = ip->first; tmp1 != NULL; tmp1 = tmp1->next) {
930 ip->first = tmp;
942 ip->last->next = tmp;
943 tmp->prev = ip->last;
944 ip->last = tmp;
948 void RemoveFromIconManager(IconMgr *ip, WList *tmp)
951 ip->first = tmp->next;
958 ip->last = tmp->prev;
967 Current = ip->first;
984 IconMgr *ip;
995 ip = tmp->iconmgr;
996 if((tmp_win->occupation & ip->twm_win->occupation) != 0) {
1001 RemoveFromIconManager(ip, tmp);
1009 ip->count -= 1;
1011 PackIconManager(ip);
1013 if(ip->count == 0) {
1014 XUnmapWindow(dpy, ip->twm_win->frame);
1015 ip->twm_win->mapped = false;
1080 * ip - a pointer to the icon manager struture
1085 void SortIconManager(IconMgr *ip)
1090 if(ip == NULL) {
1091 ip = Active->iconmgr;
1096 for(tmp1 = ip->first; tmp1 != NULL; tmp1 = tmp1->next) {
1110 RemoveFromIconManager(ip, tmp2);
1111 InsertInIconManager(ip, tmp2, tmp2->twm);
1117 PackIconManager(ip);
1127 * ip - a pointer to the icon manager struture
1143 void PackIconManager(IconMgr *ip)
1157 wwidth = ip->width / ip->columns;
1163 col = ip->columns;
1165 for(i = 0, tmp = ip->first; tmp != NULL; i++, tmp = tmp->next) {
1167 if(++col >= ip->columns) {
1196 ip->cur_rows = row;
1197 ip->cur_columns = maxcol;
1198 ip->height = row * rowinc;
1199 if(ip->height == 0) {
1200 ip->height = rowinc;
1207 XResizeWindow(dpy, ip->w, newwidth, ip->height);
1209 mask = RLayoutXParseGeometry(Scr->Layout, ip->geometry, &JunkX, &JunkY,
1212 ip->twm_win->frame_x += ip->twm_win->frame_width - newwidth -
1213 2 * ip->twm_win->frame_bw3D;
1216 ip->twm_win->frame_y += ip->twm_win->frame_height - ip->height -
1217 2 * ip->twm_win->frame_bw3D - ip->twm_win->title_height;
1219 savewidth = ip->width;
1220 if(ip->twm_win)
1221 SetupWindow(ip->twm_win,
1222 ip->twm_win->frame_x, ip->twm_win->frame_y,
1223 newwidth + 2 * ip->twm_win->frame_bw3D,
1224 ip->height + ip->twm_win->title_height + 2 * ip->twm_win->frame_bw3D, -1);
1225 ip->width = savewidth;