From bdfdeaeabf8f5bd233126a826d59e5ddd3a1cc1e Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 23 Dec 2015 15:08:29 +0300 Subject: never agree to expand an attached toplevel (drawer's panel) --- mate-panel/panel-toplevel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mate-panel/panel-toplevel.c') diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c index 164b3bd5..d4ae5ea9 100644 --- a/mate-panel/panel-toplevel.c +++ b/mate-panel/panel-toplevel.c @@ -5079,6 +5079,11 @@ panel_toplevel_set_expand (PanelToplevel *toplevel, { g_return_if_fail (PANEL_IS_TOPLEVEL (toplevel)); + if (toplevel->priv->attached && expand) { + g_warning ("attempt to expand attached toplevel; ignoring"); + return; + } + expand = expand != FALSE; if (toplevel->priv->expand == expand) -- cgit v1.2.1