Use the workarea when placing popups

This uses the new workarea API to avoid placing popups underneath
panels, docks, etc.
This commit is contained in:
Matthias Clasen
2011-12-18 14:28:01 -05:00
parent c6df2828b7
commit 020c1846b7
16 changed files with 23 additions and 25 deletions

View File

@ -1077,7 +1077,7 @@ gtk_tooltip_position (GtkTooltip *tooltip,
monitor_num = gdk_screen_get_monitor_at_point (screen,
tooltip->last_x,
tooltip->last_y);
gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
gdk_screen_get_monitor_workarea (screen, monitor_num, &monitor);
get_bounding_box (new_tooltip_widget, &bounds);