[Xfce4-commits] <xfce4-embed-plugin:master> Tweak: If a window isn't embedded, and the min-size is 0, set it to -1.

David Schneider noreply at xfce.org
Sun Jan 8 22:44:01 CET 2012


Updating branch refs/heads/master
         to 31a86ff449e361098695769299af5ffae32e8b68 (commit)
       from 3fcd604f6b3229857b01df364e1eb0efffcac6f9 (commit)

commit 31a86ff449e361098695769299af5ffae32e8b68
Author: David Schneider <dnschneid at gmail.com>
Date:   Sun Jan 8 13:38:24 2012 -0800

    Tweak: If a window isn't embedded, and the min-size is 0, set it to -1.

 panel-plugin/embed.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/embed.c b/panel-plugin/embed.c
index 2ace30e..b92bfc5 100644
--- a/panel-plugin/embed.c
+++ b/panel-plugin/embed.c
@@ -335,10 +335,9 @@ embed_size_changed (XfcePanelPlugin *plugin, gint size, EmbedPlugin *embed)
 
   /* set the socket widget size.
    * For the adjustable dimension, use the minimum size if set, otherwise if it
-   * is set to the window size and we don't have a window embedded, set to
-   * square. */
+   * is set to the window size and we don't have a window embedded, set to -1 */
   if (embed->min_size == EMBED_MIN_SIZE_MATCH_WINDOW)
-    altsize = size;
+    altsize = -1;
   else
     altsize = embed->min_size;
   if (orientation == GTK_ORIENTATION_HORIZONTAL) {


More information about the Xfce4-commits mailing list