use c->screen geometry, not display's
This commit is contained in:
parent
4270d8bba6
commit
9f68db5360
6
client.c
6
client.c
|
@ -233,9 +233,9 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
|
||||||
|
|
||||||
c->screen = get_screen_bycoord(wa->x, wa->y);
|
c->screen = get_screen_bycoord(wa->x, wa->y);
|
||||||
|
|
||||||
screen_geom = get_display_area(phys_screen,
|
screen_geom = get_screen_area(phys_screen,
|
||||||
globalconf.screens[c->screen].statusbar,
|
globalconf.screens[screen].statusbar,
|
||||||
&globalconf.screens[c->screen].padding);
|
&globalconf.screens[screen].padding);
|
||||||
/* Initial values */
|
/* Initial values */
|
||||||
c->win = w;
|
c->win = w;
|
||||||
c->geometry.x = c->f_geometry.x = c->m_geometry.x = MAX(wa->x, screen_geom.x);
|
c->geometry.x = c->f_geometry.x = c->m_geometry.x = MAX(wa->x, screen_geom.x);
|
||||||
|
|
Loading…
Reference in New Issue