From 4f2febc1a79b692cdf5fd928abb1f8892decb373 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 23 Jan 2008 08:45:16 +0100 Subject: [PATCH] use tag_view_byindex() --- layout.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/layout.c b/layout.c index dfa0bea45..10cdf94cf 100644 --- a/layout.c +++ b/layout.c @@ -27,7 +27,6 @@ #include "focus.h" #include "widget.h" #include "window.h" -#include "ewmh.h" #include "client.h" #include "screen.h" #include "layouts/tile.h" @@ -135,14 +134,9 @@ loadawesomeprops(int screen) XInternAtom(globalconf.display, "_AWESOME_PROPERTIES", False), prop, ntags + 1)) for(i = 0, tag = globalconf.screens[screen].tags; tag && prop[i]; i++, tag = tag->next) - if(prop[i] == '1') - tag->selected = True; - else - tag->selected = False; + tag_view_byindex(screen, i, prop[i] == '1'); p_delete(&prop); - - ewmh_update_net_current_desktop(get_phys_screen(screen)); } void