390
390
/***********************************************************************
393
* MoveMappedIconManager - move the pointer around in an icon manager
396
* dir - one of the following:
397
* F_FORWMAPICONMGR - forward in the window list
398
* F_BACKMAPICONMGR - backward in the window list
400
* Special Considerations:
403
***********************************************************************
406
void MoveMappedIconManager(dir)
414
if (!Current) return;
416
ip = Current->iconmgr;
425
case F_FORWMAPICONMGR:
426
if ((tmp = tmp->next) == NULL)
430
case F_BACKMAPICONMGR:
431
if ((tmp = tmp->prev) == NULL)
435
if (tmp->twm->mapped) {
445
fprintf (stderr, "%s: unable to find open window in icon manager\n",
453
/* raise the frame so the icon manager is visible */
454
if (ip->twm_win->mapped) {
455
RaiseWindow(ip->twm_win);
456
XWarpPointer(dpy, None, tmp->icon, 0,0,0,0, 5, 5);
458
if (tmp->twm->title_height) {
459
int tbx = Scr->TBInfo.titlex;
460
int x = tmp->twm->highlightxr;
461
XWarpPointer (dpy, None, tmp->twm->title_w, 0, 0, 0, 0,
463
Scr->TitleHeight / 4);
465
XWarpPointer (dpy, None, tmp->twm->w, 0, 0, 0, 0, 5, 5);
470
/***********************************************************************
393
473
* JumpIconManager - jump from one icon manager to another,
394
474
* possibly even on another screen