From 8f618c01df6583e19f1a0435bb7f89e4f75d57d6 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 4 Jul 2009 03:44:36 +0200 Subject: [PATCH] Infobar: Add screen_get_sel in uicb_infobar_togglepos, it fix a in multi-screen. --- src/config_struct.h | 2 +- src/infobar.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config_struct.h b/src/config_struct.h index 65dce4f..bff90e1 100644 --- a/src/config_struct.h +++ b/src/config_struct.h @@ -119,7 +119,7 @@ cfg_opt_t client_opts[]= /* }}} */ -/* TAGS {{{ */ +/* LAYOUTS {{{ */ cfg_opt_t layout_opts[] = { diff --git a/src/infobar.c b/src/infobar.c index 5925297..cc8a7fa 100644 --- a/src/infobar.c +++ b/src/infobar.c @@ -264,7 +264,6 @@ infobar_set_position(int pos) { screen_get_sel(); - switch(pos) { case IB_Hide: @@ -301,6 +300,8 @@ infobar_set_position(int pos) void uicb_infobar_togglepos(uicb_t cmd) { + screen_get_sel(); + infobar_set_position((tags[selscreen][seltag[selscreen]].barpos = (tags[selscreen][seltag[selscreen]].barpos < 2) ? tags[selscreen][seltag[selscreen]].barpos + 1