Lines Matching defs:icon
460 else if(twm_win->icon &&
461 Event.xcirculate.window == twm_win->icon->w) {
923 else if(Tmp_win->icon && (Event.xany.window == Tmp_win->icon->w)) {
931 Event.xany.window == Tmp_win->iconmanagerlist->icon) {
1133 Icon *icon;
1257 icon = Tmp_win->icon;
1260 * If there already is an icon found in a way that has priority
1265 (icon && icon->match == match_net_wm_icon)) {
1270 if(icon && icon->w) {
1274 * There's already an icon window.
1278 if(XGetGeometry(dpy, icon->w, &JunkRoot, &icon_x,
1281 * Move the new icon window to where the old one was.
1288 * If the window is iconic, map the new icon window.
1298 if(icon->w_not_ours) {
1299 if(icon->w != Tmp_win->wmhints->icon_window) {
1300 XUnmapWindow(dpy, icon->w);
1304 XDestroyWindow(dpy, icon->w);
1308 * The new icon window isn't our window, so note that fact
1311 icon->w_not_ours = true;
1314 * Now make the new window the icon window for this window,
1319 icon->w = Tmp_win->wmhints->icon_window;
1320 XSelectInput(dpy, icon->w,
1322 XSaveContext(dpy, icon->w, TwmContext, (XPointer)Tmp_win);
1323 XSaveContext(dpy, icon->w, ScreenContext, (XPointer)Scr);
1324 XDefineCursor(dpy, icon->w, Scr->IconCursor);
1328 if(icon && icon->w &&
1334 &JunkX, &JunkY, (unsigned int *)&icon->width,
1335 (unsigned int *)&icon->height, &JunkBW,
1340 pm = XCreatePixmap(dpy, Scr->Root, icon->width,
1341 icon->height, Scr->d_depth);
1343 FB(icon->iconc.fore, icon->iconc.back);
1347 0, 0, icon->width, icon->height, 0, 0);
1350 0, 0, icon->width, icon->height, 0, 0, 1);
1352 if(icon->image) {
1354 ReleaseIconImage(icon);
1358 image->width = icon->width;
1359 image->height = icon->height;
1360 icon->image = image;
1361 icon->match = match_icon_pixmap_hint;
1367 if(icon->bm_w) {
1368 XDestroyWindow(dpy, icon->bm_w);
1371 x = GetIconOffset(icon);
1372 icon->bm_w =
1373 XCreateWindow(dpy, icon->w, x, 0,
1374 icon->width,
1375 icon->height,
1385 rect.width = icon->width;
1386 rect.height = icon->height;
1387 XShapeCombineRectangles(dpy, icon->w, ShapeBounding, 0,
1390 XMapSubwindows(dpy, icon->w);
1393 if(icon && icon->w &&
1395 icon->match == match_icon_pixmap_hint) {
1424 x = GetIconOffset(icon);
1425 XShapeCombineMask(dpy, icon->bm_w, ShapeBounding, 0, 0, mask,
1427 XShapeCombineMask(dpy, icon->w, ShapeBounding, x, 0, mask,
1429 if(icon->image) {
1430 if(icon->image->mask) {
1431 XFreePixmap(dpy, icon->image->mask);
1433 icon->image->mask = mask;
1620 else if(Tmp_win->icon && (Event.xany.window == Tmp_win->icon->w) &&
1681 else if(Event.xany.window == iconmanagerlist->icon) {
1734 if(Tmp_win->icon != NULL) {
1760 if(Tmp_win->icon && Tmp_win->icon->w) {
1761 XDeleteContext(dpy, Tmp_win->icon->w, TwmContext);
1762 XDeleteContext(dpy, Tmp_win->icon->w, ScreenContext);
1836 if(Tmp_win->icon) {
1837 Icon *icon = Tmp_win->icon;
1838 if(icon->w && !icon->w_not_ours) {
1841 DeleteIcon(icon);
1842 Tmp_win->icon = NULL;
1952 * in the icon manager. Add it again, if requested.
1973 Window icon;
1977 if(!(RestartPreviousState && GetWMState(Tmp_win->w, &state, &icon) &&
2036 /* If no hints, or currently an icon, just "deiconify" */
2082 // Mapping the window, hide its icon
2083 if(Tmp_win->icon && Tmp_win->icon->w) {
2084 XUnmapWindow(dpy, Tmp_win->icon->w);
2150 (Tmp_win->icon && Event.xunmap.window == Tmp_win->icon->w) ||
2367 if(DragWindow == Tmp_win->icon->w) {
2368 Tmp_win->icon->w_x = xl;
2369 Tmp_win->icon->w_y = yt;
2377 else if(Tmp_win->icon && DragWindow == Tmp_win->icon->w) {
2767 ((Event.xany.window == Tmp_win->iconmanagerlist->icon) ||
2813 else if(Tmp_win->icon && (Event.xany.window == Tmp_win->icon->w)) {
2868 if((Event.xany.window == Tmp_win->iconmanagerlist->icon) ||
3231 Tmp_win->icon &&
3232 ewp->window == Tmp_win->icon->w &&
3262 * If entering the frame or the icon manager, then do
3269 * 4a. same as 4 but for icon mgr w/with NoTitleFocus
3286 * Event is in the frame or the icon mgr:
3292 * the focus if the event was in the icon mgr
3519 Tmp_win->icon &&
3520 Event.xcrossing.window == Tmp_win->icon->w &&
3526 // Are we Leave'ing the icon manager entry for the Tmp_win in
3572 * the icon manager peek ahead in the event queue for any
3620 // icon manager, or because we moved out of its frame.
3622 // Nothing to do if we were in the icon manager, and the
3639 // If we're in the icon manager, we need to take a FocusOut
3723 if(!Tmp_win || (Tmp_win->icon && (Tmp_win->icon->w == cre->window))) {