screen: emit signal on client screen change

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-10 18:19:09 +02:00
parent 1da49640b5
commit 08b0fd9885
1 changed files with 6 additions and 0 deletions

View File

@ -285,6 +285,9 @@ screen_client_moveto(client_t *c, screen_t *new_screen, bool dotag, bool doresiz
if(!doresize)
{
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;
}
@ -335,6 +338,9 @@ screen_client_moveto(client_t *c, screen_t *new_screen, bool dotag, bool doresiz
/* move / resize the client */
client_resize(c, new_geometry, false);
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.