GNOME Bugzilla – Bug 645547
Constrain tooltips to monitors
Last modified: 2011-03-22 16:45:03 UTC
Here are patches so that the dash tooltips don't lap off the primary monitor if the primary monitor is on the right.
Created attachment 184089 [details] [review] StTooltip: Add the ability to set a hook to constrain the tooltip If, for example, the stage is divided into multiple monitors, we might want to constrain tooltips so they don't cross monitor boundaries. Add a function to set a per-stage callback to constrain tooltips.
Created attachment 184090 [details] [review] Constrain tooltips to monitors Use st_tooltip_set_constrain_func() to set a function that constrains tooltips to be on the same monitor as the original tip area.
Review of attachment 184089 [details] [review]: Ideally, we would use a ClutterConstraint here, but given that we're changing anchor-point instead of position, and given that JS cannot override virtual classes, I'd say this looks good to commit.
Review of attachment 184090 [details] [review]: Looks good!
Attachment 184089 [details] pushed as d19cdc2 - StTooltip: Add the ability to set a hook to constrain the tooltip Attachment 184090 [details] pushed as 80eb37e - Constrain tooltips to monitors