[Xfce4-commits] <xfce4-panel:master> Panel: Improve default position.

Nick Schermer noreply at xfce.org
Thu Dec 29 17:36:03 CET 2011


Updating branch refs/heads/master
         to e117160f30fc45d4ca0d0eee722921ce74d34e2c (commit)
       from 1473206aa9771e110d5b5e80fd8f1b370f986638 (commit)

commit e117160f30fc45d4ca0d0eee722921ce74d34e2c
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Dec 29 16:32:08 2011 +0100

    Panel: Improve default position.

 panel/panel-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel/panel-application.c b/panel/panel-application.c
index 143f489..7e6d1d5 100644
--- a/panel/panel-application.c
+++ b/panel/panel-application.c
@@ -1534,7 +1534,7 @@ panel_application_new_window (PanelApplication *application,
 
       /* create a position so not all panels overlap */
       idx = g_slist_index (application->windows, window);
-      position = g_strdup_printf ("p=0;x=100;y=%d", 100 + (idx * 48) + 10);
+      position = g_strdup_printf ("p=0;x=100;y=%d", 30 + (idx * (48 + 10)));
       g_object_set (G_OBJECT (window), "position", position, NULL);
       g_free (position);
     }


More information about the Xfce4-commits mailing list