From aba2337a1fb8ed656ac7599d0335b291e5823991 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 22 Jul 2019 17:58:58 +0300 Subject: panel-toplevel: fix applets placement on expanded vertical panel fixes https://github.com/mate-desktop/mate-panel/issues/745 --- mate-panel/panel-toplevel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; + } } } } -- cgit v1.2.1