Clones.bjs
[gitlive] / Clones.vala
index a9a7412..05e6021 100644 (file)
@@ -72,7 +72,7 @@ public class Clones : Object
     public void loadAndShow () {
        this.el.set_deletable(true);
         this.el.set_gravity(Gdk.Gravity.NORTH);
-        this.el.move((Gdk.Screen.width() / 2 ) - (int.max(1280,Gdk.Screen.width() / 2) ,0);
+        this.el.move((Gdk.Screen.width() / 2 ) - (int.min(1280,Gdk.Screen.width()) / 2) ,0);
          this.el.set_keep_above(true);
         this.el.set_default_size(
                        int.max(1280,Gdk.Screen.width()),
@@ -95,7 +95,7 @@ public class Clones : Object
     public void show ()    {
     this.el.set_deletable(true);
         this.el.set_gravity(Gdk.Gravity.NORTH);
-        this.el.move((Gdk.Screen.width() / 2 ) - (int.max(1280,Gdk.Screen.width() / 2) ,0);
+        this.el.move((Gdk.Screen.width() / 2 ) - (int.max(1280,Gdk.Screen.width()) / 2) ,0);
          this.el.set_keep_above(true);
        this.el.set_default_size(
                        int.max(1280,Gdk.Screen.width()),