From 82febf351bae5e8872bb6d8fb4649207f7182f0c 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 3dc85d95..30c9185e 100644 --- a/mate-panel/panel-widget.c +++ b/mate-panel/panel-widget.c @@ -1917,7 +1917,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