From e1d11722a750db804d9c601e9bf771ec5b8ec868 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 1 Mar 2019 14:32:01 +0000 Subject: Tie group number and name together during config. --- screen.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 59249e6..e514e29 100644 --- a/screen.c +++ b/screen.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: screen.c,v 1.88 2018/02/13 15:43:16 okan Exp $ + * $OpenBSD: screen.c,v 1.89 2019/03/01 14:32:01 okan Exp $ */ #include @@ -40,7 +40,6 @@ screen_init(int which) Window *wins, w0, w1, active = None; XSetWindowAttributes rootattr; unsigned int nwins, w; - int i; sc = xmalloc(sizeof(*sc)); @@ -61,9 +60,7 @@ screen_init(int which) xu_ewmh_net_supported_wm_check(sc); screen_update_geometry(sc); - - for (i = 0; i < Conf.ngroups; i++) - group_init(sc, i); + conf_group(sc); xu_ewmh_net_desktop_names(sc); xu_ewmh_net_wm_desktop_viewport(sc); -- cgit v1.2.3-2-gb3c3