summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2019-07-22 17:58:58 +0300
committermonsta <[email protected]>2019-07-26 15:25:32 +0300
commitaba2337a1fb8ed656ac7599d0335b291e5823991 (patch)
treef5b65f58a345ef6d878f9a8c699c6a2c0b5907f3
parent08e0723bf03978c23018b9fce6320ba6c15db84c (diff)
downloadmate-panel-aba2337a1fb8ed656ac7599d0335b291e5823991.tar.bz2
mate-panel-aba2337a1fb8ed656ac7599d0335b291e5823991.tar.xz
panel-toplevel: fix applets placement on expanded vertical panel1.20
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;
+ }
}
}
}