Infobar: Add screen_get_sel in uicb_infobar_togglepos, it fix a in multi-screen.

This commit is contained in:
martin 2009-07-04 03:44:36 +02:00
parent 42fa59a524
commit 8f618c01df
2 changed files with 3 additions and 2 deletions

View File

@ -119,7 +119,7 @@ cfg_opt_t client_opts[]=
/* }}} */
/* TAGS {{{ */
/* LAYOUTS {{{ */
cfg_opt_t layout_opts[] =
{

View File

@ -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