forked from e16/e16
1
0
Fork 0

Hide tooltips in various situations (showing focus list, window map, move, etc.).

SVN revision: 32318
This commit is contained in:
Kim Woelders 2007-11-03 10:25:11 +00:00
parent e9af7d30b6
commit 45a497b5c3
2 changed files with 8 additions and 5 deletions

View File

@ -276,7 +276,7 @@ HandleEvent(XEvent * ev)
Mode.events.time = ev->xbutton.time;
ModeGetXY(ev->xbutton.root, ev->xbutton.x_root, ev->xbutton.y_root);
Mode.events.on_screen = ev->xbutton.same_screen;
TooltipsSetPending(0, NULL, NULL);
TooltipsHide();
goto do_stuff;
case MotionNotify:
@ -300,7 +300,7 @@ HandleEvent(XEvent * ev)
}
ModeGetXY(ev->xcrossing.root, ev->xcrossing.x_root,
ev->xcrossing.y_root);
TooltipsSetPending(0, NULL, NULL);
TooltipsHide();
goto do_stuff;
case LeaveNotify:
@ -314,7 +314,7 @@ HandleEvent(XEvent * ev)
}
ModeGetXY(ev->xcrossing.root, ev->xcrossing.x_root,
ev->xcrossing.y_root);
TooltipsSetPending(0, NULL, NULL);
TooltipsHide();
goto do_stuff;
case PropertyNotify:

View File

@ -699,6 +699,8 @@ TooltipsHide(void)
{
ToolTip *tt;
TooltipsSetPending(0, NULL, NULL);
ECORE_LIST_FOR_EACH(tt_list, tt) TooltipHide(tt);
}
@ -713,6 +715,7 @@ TooltipsEnable(int enable)
else
{
Mode_tooltips.inhibit++;
TooltipsHide();
}
}
@ -771,8 +774,7 @@ TooltipsSetPending(int type, CB_GetAclass * func, void *data)
Mode_tooltips.ac_func = func;
Mode_tooltips.ac_data = data;
if (ttip)
TooltipHide(ttip);
TooltipHide(ttip);
RemoveTimerEvent("TOOLTIP_TIMEOUT");
@ -818,6 +820,7 @@ TooltipsSighan(int sig, void *prm __UNUSED__)
break;
case ESIGNAL_AREA_SWITCH_START:
case ESIGNAL_DESK_SWITCH_START:
case ESIGNAL_EWIN_CHANGE:
TooltipsHide();
break;
}