Fix hole at reload only for tiled client -> fix free client resize at reload
This commit is contained in:
parent
c8991c84fb
commit
d3718da15d
@ -965,8 +965,6 @@ client_new(Window w, XWindowAttributes *wa, bool scan)
|
|||||||
/* Attach */
|
/* Attach */
|
||||||
SLIST_INSERT_HEAD(&W->h.client, c, next);
|
SLIST_INSERT_HEAD(&W->h.client, c, next);
|
||||||
|
|
||||||
ewmh_set_wm_state(w, NormalState);
|
|
||||||
|
|
||||||
if(!scan)
|
if(!scan)
|
||||||
{
|
{
|
||||||
client_get_name(c);
|
client_get_name(c);
|
||||||
|
|||||||
@ -370,7 +370,7 @@ event_mapnotify(XEvent *e)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if((c = client_gb_win(ev->window)))
|
if((c = client_gb_win(ev->window)))
|
||||||
ewmh_set_wm_state(c->win, NormalState);
|
client_map(c);
|
||||||
else if((s = systray_find(ev->window)))
|
else if((s = systray_find(ev->window)))
|
||||||
{
|
{
|
||||||
ewmh_set_wm_state(s->win, NormalState);
|
ewmh_set_wm_state(s->win, NormalState);
|
||||||
|
|||||||
@ -346,7 +346,8 @@ wmfs_scan(void)
|
|||||||
client_focus(fc);
|
client_focus(fc);
|
||||||
|
|
||||||
SLIST_FOREACH(c, &W->h.client, next)
|
SLIST_FOREACH(c, &W->h.client, next)
|
||||||
layout_fix_hole(c);
|
if(c->flags & CLIENT_TILED)
|
||||||
|
layout_fix_hole(c);
|
||||||
|
|
||||||
W->flags &= ~WMFS_SCAN;
|
W->flags &= ~WMFS_SCAN;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user