diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2014-09-23 13:45:49 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2014-09-23 13:45:49 +0000 |
commit | cf30637f7c8f230b0522a981bab272d21085b475 (patch) | |
tree | 92e8160ed0d989685bbbda518b0ef0dbffd7ebc2 /app/cwm/group.c | |
parent | 6730b7d3b0cdad7839852a18b4cfb97d16854428 (diff) |
Move stuff that doesn't belong in group_init; while here, explicitly
initialize hideall and cycling.
Diffstat (limited to 'app/cwm/group.c')
-rw-r--r-- | app/cwm/group.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c index 0f80e3d41..b69740312 100644 --- a/app/cwm/group.c +++ b/app/cwm/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: group.c,v 1.104 2014/09/17 16:32:53 okan Exp $ + * $OpenBSD: group.c,v 1.105 2014/09/23 13:45:48 okan Exp $ */ #include <sys/param.h> @@ -119,9 +119,6 @@ group_init(struct screen_ctx *sc) struct group_ctx *gc; int i; - TAILQ_INIT(&sc->groupq); - sc->group_hideall = 0; - for (i = 0; i < CALMWM_NGROUPS; i++) { gc = xcalloc(1, sizeof(*gc)); gc->sc = sc; @@ -131,12 +128,6 @@ group_init(struct screen_ctx *sc) TAILQ_INSERT_TAIL(&sc->groupq, gc, entry); } - xu_ewmh_net_desktop_names(sc); - xu_ewmh_net_wm_desktop_viewport(sc); - xu_ewmh_net_wm_number_of_desktops(sc); - xu_ewmh_net_showing_desktop(sc); - xu_ewmh_net_virtual_roots(sc); - group_setactive(sc, 1); } @@ -315,12 +306,12 @@ group_alltoggle(struct screen_ctx *sc) struct group_ctx *gc; TAILQ_FOREACH(gc, &sc->groupq, entry) { - if (sc->group_hideall) + if (sc->hideall) group_show(gc); else group_hide(gc); } - sc->group_hideall = !sc->group_hideall; + sc->hideall = !sc->hideall; } void |