*fix* tooltip fixed

*fix* send battery low command if below the value, not exactly the value


git-svn-id: http://tint2.googlecode.com/svn/trunk@289 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85
2009-12-17 18:25:51 +00:00
parent e11cb05c96
commit c46e1341aa
2 changed files with 13 additions and 4 deletions

View File

@@ -108,7 +108,10 @@ void tooltip_trigger_show(Area* area, Panel* p, int x_root, int y_root)
void tooltip_show()
{
Area* area = click_area(g_tooltip.panel, x, y);
int mx, my;
Window w;
XTranslateCoordinates( server.dsp, server.root_win, g_tooltip.panel->main_win, x, y, &mx, &my, &w);
Area* area = click_area(g_tooltip.panel, mx, my);
stop_timeouts();
if (!g_tooltip.mapped && area->_get_tooltip_text) {
tooltip_copy_text(area);