summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-02-03 13:06:47 -0500
committerMike Blumenkrantz <zmike@samsung.com>2014-02-03 13:06:47 -0500
commit87b273d314fe32317c457eaf3ea518a27cbb22b1 (patch)
tree9ac2daf412d2287db065dfaae6638967b32b0e2b
parent7870eda74d25289aec7222325741e33ab0866700 (diff)
bugfix: initial client positioning with multiple monitors improved
-rw-r--r--src/bin/e_border.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index 7ebb732d9..94f62c612 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -8487,14 +8487,11 @@ _e_border_eval(E_Border *bd)
8487 /* some application failing to correctly center a window */ 8487 /* some application failing to correctly center a window */
8488 if (eina_list_count(bd->zone->container->zones) > 1) 8488 if (eina_list_count(bd->zone->container->zones) > 1)
8489 { 8489 {
8490 if (((abs((bd->zone->container->w / 2) - bd->x) < 3) || //bd->x is center of container 8490 if (abs((bd->zone->container->manager->w / 2) - bd->x - (bd->w / 2)) < 3)
8491 ((abs((bd->zone->container->w / 2) - bd->x - bd->w) < 3) || //bd->x - bd->w is center of container 8491 bd->x = ((bd->zone->x + bd->zone->w) / 2) - (bd->w / 2);
8492 (abs((bd->zone->container->w / 2) - bd->x - (bd->w / 2)) < 3))) || //bd->x - bd->w/2 is center of container 8492 if (abs((bd->zone->container->manager->h / 2) - bd->y - (bd->h / 2)) < 3)
8493 ((abs((bd->zone->container->h / 2) - bd->y) < 3) || //bd->y is center of container 8493 bd->y = ((bd->zone->y + bd->zone->h) / 2) - (bd->h / 2);
8494 ((abs((bd->zone->container->h / 2) - bd->y - bd->h) < 3) || //bd->y - bd->h is center of container 8494 e_border_zone_set(bd, e_container_zone_at_point_get(bd->zone->container, bd->x, bd->y));
8495 (abs((bd->zone->container->h / 2) - bd->y - (bd->h / 2)) < 3))) //bd->y - bd->h/2 is center of container
8496 )
8497 e_border_center(bd);
8498 } 8495 }
8499 bd->changes.pos = 1; 8496 bd->changes.pos = 1;
8500 bd->placed = 1; 8497 bd->placed = 1;