Update _NET_CURRENT_DESKTOP with the screen's group_active->num.

This commit is contained in:
okan
2014-09-23 14:25:08 +00:00
parent cb65869d7a
commit 845e82015c
3 changed files with 8 additions and 6 deletions

View File

@ -34,7 +34,7 @@
static void group_assign(struct group_ctx *, struct client_ctx *);
static void group_restack(struct group_ctx *);
static void group_setactive(struct screen_ctx *, long);
static void group_setactive(struct screen_ctx *, int);
const char *num_to_name[] = {
"nogroup", "one", "two", "three", "four", "five", "six",
@ -132,7 +132,7 @@ group_init(struct screen_ctx *sc)
}
static void
group_setactive(struct screen_ctx *sc, long idx)
group_setactive(struct screen_ctx *sc, int idx)
{
struct group_ctx *gc;
@ -142,7 +142,7 @@ group_setactive(struct screen_ctx *sc, long idx)
}
sc->group_active = gc;
xu_ewmh_net_current_desktop(sc, idx);
xu_ewmh_net_current_desktop(sc);
}
void