diff options
author | Wu Xiaotian <[email protected]> | 2019-09-11 11:20:56 +0800 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-09-15 02:06:59 +0000 |
commit | 82febf351bae5e8872bb6d8fb4649207f7182f0c (patch) | |
tree | 2ac75c8cd969f16ec6da588ba855134a6455c025 | |
parent | 407956e1f924dc0c1da1d3784706aaa014e91fc0 (diff) | |
download | mate-panel-82febf351bae5e8872bb6d8fb4649207f7182f0c.tar.bz2 mate-panel-82febf351bae5e8872bb6d8fb4649207f7182f0c.tar.xz |
When determining whether the pos is in the applet, use ad->cells to calc.
-rw-r--r-- | mate-panel/panel-widget.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |