summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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;
+ }
}
}
}