void list_deiconify(unsigned long *body) { PagerWindow *t; Window target_w; target_w = body[0]; t = Start; while((t!= NULL)&&(t->w != target_w)) { t = t->next; } if(t== NULL) { return; } else { t->flags &= ~ICONIFIED; t->x = t->frame_x; t->y = t->frame_y; t->width = t->frame_width; t->height = t->frame_height; MoveResizePagerView(t); if(FocusWin == t) Hilight(t,ON); else Hilight(t,OFF); } }
/*********************************************************************** * * Procedure: * list_iconify - displays packet contents to stderr * ***********************************************************************/ void list_iconify(unsigned long *body) { PagerWindow *t; Window target_w; target_w = body[0]; t = Start; while (t != NULL && t->w != target_w) { t = t->next; } if (t != NULL) { t->t = (char *)body[2]; t->frame = body[1]; t->icon_x = body[3]; t->icon_y = body[4]; t->icon_width = body[5]; t->icon_height = body[6]; SET_ICONIFIED(t, True); if (IS_ICON_SUPPRESSED(t) || t->icon_width == 0 || t->icon_height == 0) { t->x = -32768; t->y = -32768; } else { t->x = t->icon_x; t->y = t->icon_y; } t->width = t->icon_width; t->height = t->icon_height; /* if iconifying main pager window turn balloons on or off */ if ( t->w == Scr.Pager_w ) { ShowBalloons = ShowIconBalloons; } MoveResizePagerView(t, True); } return; }
void list_deiconify(unsigned long *body, unsigned long length) { PagerWindow *t; Window target_w; target_w = body[0]; t = Start; while((t!= NULL)&&(t->w != target_w)) { t = t->next; } if (t == NULL) { return; } else { SET_ICONIFIED(t, False); if (length >= 11 + FvwmPacketHeaderSize) { t->frame_x = body[7]; t->frame_y = body[8]; t->frame_width = body[9]; t->frame_height = body[10]; } t->x = t->frame_x; t->y = t->frame_y; t->width = t->frame_width; t->height = t->frame_height; /* if deiconifying main pager window turn balloons on or off */ if ( t->w == Scr.Pager_w ) ShowBalloons = ShowPagerBalloons; MoveResizePagerView(t, True); } return; }
/*********************************************************************** * * Procedure: * list_iconify - displays packet contents to stderr * ***********************************************************************/ void list_iconify(unsigned long *body) { PagerWindow *t; Window target_w; target_w = body[0]; t = Start; while((t!= NULL)&&(t->w != target_w)) { t = t->next; } if(t== NULL) { return; } else { t->t = (char *)body[2]; t->frame = body[1]; t->icon_x = body[3]; t->icon_y = body[4]; t->icon_width = body[5]; t->icon_height = body[6]; t->flags |= ICONIFIED; t->x = t->icon_x; t->y = t->icon_y; if(t->flags & SUPPRESSICON) { t->x = -10000; t->y = -10000; } t->width = t->icon_width; t->height = t->icon_height; MoveResizePagerView(t); } }
/*********************************************************************** * * Procedure: * list_configure - displays packet contents to stderr * ***********************************************************************/ void list_configure(unsigned long *body) { PagerWindow *t; Window target_w; struct ConfigWinPacket *cfgpacket = (void *) body; target_w = cfgpacket->w; t = Start; while((t!= NULL)&&(t->w != target_w)) { t = t->next; } if(t== NULL) { list_add(body); return; } t->t = (char *) cfgpacket->fvwmwin; t->frame = cfgpacket->frame; t->frame_x = cfgpacket->frame_x; t->frame_y = cfgpacket->frame_y; t->frame_width = cfgpacket->frame_width; t->frame_height = cfgpacket->frame_height; t->title_height = cfgpacket->title_height; t->border_width = cfgpacket->border_width; memcpy(&(t->flags), &(cfgpacket->flags), sizeof(cfgpacket->flags)); t->icon_w = cfgpacket->icon_w; t->icon_pixmap_w = cfgpacket->icon_pixmap_w; if (win_pix_set) { t->text = win_fore_pix; t->back = win_back_pix; } else { t->text = cfgpacket->TextPixel; t->back = cfgpacket->BackPixel; } if(IS_ICONIFIED(t)) { t->x = t->icon_x; t->y = t->icon_y; t->width = t->icon_width; t->height = t->icon_height; if(IS_ICON_SUPPRESSED(t) || t->width == 0 || t->height == 0) { t->x = -32768; t->y = -32768; } } else { t->x = t->frame_x; t->y = t->frame_y; t->width = t->frame_width; t->height = t->frame_height; } if(t->desk != cfgpacket->desk) { ChangeDeskForWindow(t, cfgpacket->desk); } else MoveResizePagerView(t, False); }
/*********************************************************************** * * Procedure: * list_configure - displays packet contents to stderr * ***********************************************************************/ void list_configure(unsigned long *body) { PagerWindow *t; Window target_w; target_w = body[0]; t = Start; while((t!= NULL)&&(t->w != target_w)) { t = t->next; } if(t== NULL) { list_add(body); } else { t->t = (char *)body[2]; t->frame = body[1]; t->frame_x = body[3]; t->frame_y = body[4]; t->frame_width = body[5]; t->frame_height = body[6]; t->title_height = body[9]; t->border_width = body[10]; t->flags = body[8]; t->icon_w = body[19]; t->icon_pixmap_w = body[20]; t->text = body[22]; t->back = body[23]; if(t->flags & ICONIFIED) { t->x = t->icon_x; t->y = t->icon_y; t->width = t->icon_width; t->height = t->icon_height; if(t->flags & SUPPRESSICON) { t->x = -10000; t->y = -10000; } } else { t->x = t->frame_x; t->y = t->frame_y; t->width = t->frame_width; t->height = t->frame_height; } if(t->desk != body[7]) { ChangeDeskForWindow(t,body[7]); } else MoveResizePagerView(t); if(FocusWin == t) Hilight(t,ON); else Hilight(t,OFF); } }