summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-09-11 11:20:56 +0800
committerraveit65 <[email protected]>2019-09-15 09:43:39 +0200
commit6343e1442382b551be09e664724cbb1efb77daed (patch)
tree1ad0763b9a5b45336b34f1659a4d2e58f67d20ff
parent45bd0678f831ef967fb30bbd733ac523ce164e1d (diff)
downloadmate-panel-6343e1442382b551be09e664724cbb1efb77daed.tar.bz2
mate-panel-6343e1442382b551be09e664724cbb1efb77daed.tar.xz
When determining whether the pos is in the applet, use ad->cells to calc.
-rw-r--r--mate-panel/panel-widget.c2
1 files changed, 1 insertions, 1 deletions
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;
}