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 <psychon@znc.in>
This commit is contained in:
parent
a9e0d258b7
commit
9e4270f2e7
6
ewmh.c
6
ewmh.c
|
@ -364,7 +364,11 @@ ewmh_process_desktop(client_t *c, uint32_t desktop)
|
||||||
{
|
{
|
||||||
int idx = desktop;
|
int idx = desktop;
|
||||||
if(desktop == 0xffffffff)
|
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)
|
else if (idx >= 0 && idx < globalconf.tags.len)
|
||||||
for(int i = 0; i < globalconf.tags.len; i++)
|
for(int i = 0; i < globalconf.tags.len; i++)
|
||||||
if(idx == i)
|
if(idx == i)
|
||||||
|
|
Loading…
Reference in New Issue