Scan: Update client attributes after client_manage and arrange all screen at the end.
This commit is contained in:
@@ -64,8 +64,6 @@ ewmh_init_hints(void)
|
|||||||
net_atom[net_wm_window_type_dialog] = ATOM("_NET_WM_WINDOW_TYPE_DIALOG");
|
net_atom[net_wm_window_type_dialog] = ATOM("_NET_WM_WINDOW_TYPE_DIALOG");
|
||||||
net_atom[net_wm_icon] = ATOM("_NET_WM_ICON");
|
net_atom[net_wm_icon] = ATOM("_NET_WM_ICON");
|
||||||
net_atom[net_wm_state] = ATOM("_NET_WM_STATE");
|
net_atom[net_wm_state] = ATOM("_NET_WM_STATE");
|
||||||
net_atom[net_wm_state_sticky] = ATOM("_NET_WM_STATE_STICKY");
|
|
||||||
net_atom[net_wm_state_skip_taskbar] = ATOM("_NET_WM_STATE_SKIP_TASKBAR");
|
|
||||||
net_atom[net_wm_state_fullscreen] = ATOM("_NET_WM_STATE_FULLSCREEN");
|
net_atom[net_wm_state_fullscreen] = ATOM("_NET_WM_STATE_FULLSCREEN");
|
||||||
net_atom[net_wm_state_demands_attention] = ATOM("_NET_WM_STATE_DEMANDS_ATTENTION");
|
net_atom[net_wm_state_demands_attention] = ATOM("_NET_WM_STATE_DEMANDS_ATTENTION");
|
||||||
net_atom[utf8_string] = ATOM("UTF8_STRING");
|
net_atom[utf8_string] = ATOM("UTF8_STRING");
|
||||||
|
|||||||
@@ -75,8 +75,6 @@ enum
|
|||||||
net_wm_desktop,
|
net_wm_desktop,
|
||||||
net_wm_icon,
|
net_wm_icon,
|
||||||
net_wm_state,
|
net_wm_state,
|
||||||
net_wm_state_sticky,
|
|
||||||
net_wm_state_skip_taskbar,
|
|
||||||
net_wm_state_fullscreen,
|
net_wm_state_fullscreen,
|
||||||
net_wm_state_demands_attention,
|
net_wm_state_demands_attention,
|
||||||
utf8_string,
|
utf8_string,
|
||||||
|
|||||||
@@ -225,11 +225,13 @@ scan(void)
|
|||||||
if(screen != -1)
|
if(screen != -1)
|
||||||
c->screen = screen;
|
c->screen = screen;
|
||||||
|
|
||||||
arrange(c->screen);
|
client_update_attributes(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for(i = 0; i < screen_count(); ++i)
|
||||||
|
arrange(i);
|
||||||
|
|
||||||
XFree(w);
|
XFree(w);
|
||||||
arrange(screen_get_sel());
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user