Fix area lookup coordinates in tooltip_show()
git-svn-id: http://tint2.googlecode.com/svn/trunk@636 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
fb042d4230
commit
720ced62f3
1 changed files with 4 additions and 1 deletions
|
@ -99,7 +99,10 @@ void tooltip_show(void* arg)
|
||||||
int mx, my;
|
int mx, my;
|
||||||
Window w;
|
Window w;
|
||||||
XTranslateCoordinates( server.dsp, server.root_win, g_tooltip.panel->main_win, x, y, &mx, &my, &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);
|
Area* area;
|
||||||
|
if (!panel_horizontal)
|
||||||
|
my += height/2; /* we adjusted y in tooltip_trigger_show, revert or we won't find the correct area anymore */
|
||||||
|
area = click_area(g_tooltip.panel, mx, my);
|
||||||
stop_tooltip_timeout();
|
stop_tooltip_timeout();
|
||||||
if (!g_tooltip.mapped && area->_get_tooltip_text) {
|
if (!g_tooltip.mapped && area->_get_tooltip_text) {
|
||||||
tooltip_copy_text(area);
|
tooltip_copy_text(area);
|
||||||
|
|
Loading…
Reference in a new issue