Fix _NET_CURRENT_DESKTOP ClientMessage handling (#3237)

This was broken in commit c5202a4870 by adding an extra string
to the Lua stack. Hence, the offset -1 now referred to the string and
not the tag.

Fixes: https://github.com/awesomeWM/awesome/issues/3236
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2021-04-26 00:33:39 +02:00 committed by GitHub
parent c8d3de3ff4
commit d2dc428e56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
ewmh.c
View file

@ -468,7 +468,7 @@ ewmh_process_client_message(xcb_client_message_event_t *ev)
lua_State *L = globalconf_get_lua_State();
luaA_object_push(L, globalconf.tags.tab[idx]);
lua_pushstring(L, "ewmh");
luaA_object_emit_signal(L, -1, "request::select", 1);
luaA_object_emit_signal(L, -2, "request::select", 1);
lua_pop(L, 1);
}
}