From 6343e1442382b551be09e664724cbb1efb77daed Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Wed, 11 Sep 2019 11:20:56 +0800 Subject: When determining whether the pos is in the applet, use ad->cells to calc. --- mate-panel/panel-widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mate-panel') diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c index 555308f5..9871de51 100644 --- a/mate-panel/panel-widget.c +++ b/mate-panel/panel-widget.c @@ -1910,7 +1910,7 @@ is_in_applet (int pos, AppletData *ad) g_return_val_if_fail (ad != NULL, NULL); if (ad->constrained <= pos && - ad->constrained + ad->min_cells > pos) + ad->constrained + ad->cells > pos) return ad->applet; return NULL; } -- cgit v1.2.1