summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2019-07-22 17:58:58 +0300
committermonsta <[email protected]>2019-07-26 15:20:13 +0300
commit45bd0678f831ef967fb30bbd733ac523ce164e1d (patch)
tree4f302dceb8b194de03964a49153a1a001572e7b0
parentc35db1707148b300c3477dd72b7d568eaa71f25f (diff)
downloadmate-panel-45bd0678f831ef967fb30bbd733ac523ce164e1d.tar.bz2
mate-panel-45bd0678f831ef967fb30bbd733ac523ce164e1d.tar.xz
panel-toplevel: fix applets placement on expanded vertical panel
fixes https://github.com/mate-desktop/mate-panel/issues/745
-rw-r--r--mate-panel/panel-toplevel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c
index 78ce5152..f8b56979 100644
--- a/mate-panel/panel-toplevel.c
+++ b/mate-panel/panel-toplevel.c
@@ -2979,7 +2979,11 @@ panel_toplevel_move_resize_window (PanelToplevel *toplevel,
if (stick) {
position = g_settings_get_int (info->settings, PANEL_OBJECT_POSITION_KEY);
- ad->pos = toplevel->priv->geometry.width - position;
+ if (toplevel->priv->orientation & PANEL_HORIZONTAL_MASK) {
+ ad->pos = toplevel->priv->geometry.width - position;
+ } else {
+ ad->pos = toplevel->priv->geometry.height - position;
+ }
}
}
}