diff options
author | monsta <[email protected]> | 2019-07-22 17:58:58 +0300 |
---|---|---|
committer | Clement Lefebvre <[email protected]> | 2019-07-25 13:20:26 +0200 |
commit | 60c14740efc90306707987907d26912adb7ef76a (patch) | |
tree | 193992260a24d96b7612a6009510461690b45e08 | |
parent | 053315539251d211e156dc7c5e99f5f8b416de4f (diff) | |
download | mate-panel-60c14740efc90306707987907d26912adb7ef76a.tar.bz2 mate-panel-60c14740efc90306707987907d26912adb7ef76a.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.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c index 9af07674..46077ffd 100644 --- a/mate-panel/panel-toplevel.c +++ b/mate-panel/panel-toplevel.c @@ -2946,7 +2946,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; + } } } } |