From 0c7901394dd5171570ababf7699fd6935c8a353d Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 17 Mar 2014 15:38:20 +0100 Subject: [PATCH] ewmh: Use client_set_sticky() for making clients sticky We can't just directly assign c->sticky directly, because we should emit the right signals and unban the client if it is currently ban. All of that gets handled by client_set_sticky(). Signed-off-by: Uli Schlachter --- ewmh.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ewmh.c b/ewmh.c index 5c894338..fa548dd2 100644 --- a/ewmh.c +++ b/ewmh.c @@ -364,7 +364,11 @@ ewmh_process_desktop(client_t *c, uint32_t desktop) { int idx = desktop; if(desktop == 0xffffffff) - c->sticky = true; + { + luaA_object_push(globalconf.L, c); + client_set_sticky(globalconf.L, -1, true); + lua_pop(globalconf.L, 1); + } else if (idx >= 0 && idx < globalconf.tags.len) for(int i = 0; i < globalconf.tags.len; i++) if(idx == i) -- 2.11.4.GIT