diff --git a/ewmh.c b/ewmh.c index 0f484bcd..70b205a6 100644 --- a/ewmh.c +++ b/ewmh.c @@ -263,7 +263,7 @@ ewmh_process_state_atom(Client *c, Atom state, int set) } else if(set == _NET_WM_STATE_ADD) { - geometry = get_screen_area(c->screen, NULL, NULL); + geometry = get_screen_area(c->screen, NULL, &globalconf.screens[c->screen].padding); /* save geometry */ c->m_geometry = c->geometry; c->wasfloating = c->isfloating;