From 9f68db536011224a997113f873efef44efcd7b08 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 28 Jan 2008 11:43:37 +0100 Subject: [PATCH] use c->screen geometry, not display's --- client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index e91c51d2f..70f18163c 100644 --- a/client.c +++ b/client.c @@ -233,9 +233,9 @@ client_manage(Window w, XWindowAttributes *wa, int screen) c->screen = get_screen_bycoord(wa->x, wa->y); - screen_geom = get_display_area(phys_screen, - globalconf.screens[c->screen].statusbar, - &globalconf.screens[c->screen].padding); + screen_geom = get_screen_area(phys_screen, + globalconf.screens[screen].statusbar, + &globalconf.screens[screen].padding); /* Initial values */ c->win = w; c->geometry.x = c->f_geometry.x = c->m_geometry.x = MAX(wa->x, screen_geom.x);