screen: emit signal on client screen change
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1da49640b5
commit
08b0fd9885
6
screen.c
6
screen.c
|
@ -285,6 +285,9 @@ screen_client_moveto(client_t *c, screen_t *new_screen, bool dotag, bool doresiz
|
||||||
if(!doresize)
|
if(!doresize)
|
||||||
{
|
{
|
||||||
hook_property(c, "screen");
|
hook_property(c, "screen");
|
||||||
|
luaA_object_push(globalconf.L, c);
|
||||||
|
luaA_object_emit_signal(globalconf.L, -1, "property::screen", 0);
|
||||||
|
lua_pop(globalconf.L, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -335,6 +338,9 @@ screen_client_moveto(client_t *c, screen_t *new_screen, bool dotag, bool doresiz
|
||||||
/* move / resize the client */
|
/* move / resize the client */
|
||||||
client_resize(c, new_geometry, false);
|
client_resize(c, new_geometry, false);
|
||||||
hook_property(c, "screen");
|
hook_property(c, "screen");
|
||||||
|
luaA_object_push(globalconf.L, c);
|
||||||
|
luaA_object_emit_signal(globalconf.L, -1, "property::screen", 0);
|
||||||
|
lua_pop(globalconf.L, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Push a screen onto the stack.
|
/** Push a screen onto the stack.
|
||||||
|
|
Loading…
Reference in New Issue