Use WM_NAME in stead of WM_ICON_NAME in pager and iconbox.

SVN revision: 63209
This commit is contained in:
Kim Woelders 2011-09-05 18:37:31 +00:00
parent 1cc76e5c3a
commit c9c22f6fc6
3 changed files with 5 additions and 3 deletions

View File

@ -1604,6 +1604,7 @@ EwinGetTitle(const EWin * ewin)
return (name && name[0]) ? name : NULL;
}
#if 0 /* Unused */
const char *
EwinGetIconName(const EWin * ewin)
{
@ -1621,6 +1622,7 @@ EwinGetIconName(const EWin * ewin)
done:
return (name && strlen(name)) ? name : NULL;
}
#endif
const char *
EwinBorderGetName(const EWin * ewin)

View File

@ -573,7 +573,7 @@ IconboxEvent(Container * ct, XEvent * ev)
if (!ewin)
break;
name = EwinGetIconName(ewin);
name = EwinGetTitle(ewin);
if (name)
TooltipShow(tt, name, NULL, Mode.events.cx, Mode.events.cy);
break;

View File

@ -1105,7 +1105,7 @@ PagerShowTt(EWin * ewin)
static EWin *tt_ewin = NULL;
ToolTip *tt;
Dprintf("PagerShowTt %s\n", (ewin) ? EwinGetIconName(ewin) : NULL);
Dprintf("PagerShowTt %s\n", (ewin) ? EwinGetTitle(ewin) : NULL);
if (!Conf_pagers.title || (ewin == tt_ewin))
return;
@ -1117,7 +1117,7 @@ PagerShowTt(EWin * ewin)
if (tt)
{
if (ewin)
TooltipShow(tt, EwinGetIconName(ewin), NULL, Mode.events.cx,
TooltipShow(tt, EwinGetTitle(ewin), NULL, Mode.events.cx,
Mode.events.cy);
else
TooltipHide(tt);