use c->screen geometry, not display's

This commit is contained in:
Julien Danjou 2008-01-28 11:43:37 +01:00
parent 4270d8bba6
commit 9f68db5360
1 changed files with 3 additions and 3 deletions

View File

@ -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);