From 338064ae96ad636658148e683ca968f90549e7c6 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 24 Jul 2016 16:29:56 +0200 Subject: [PATCH] screen: Add old workarea as argument to property::workarea Signed-off-by: Uli Schlachter --- objects/screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/objects/screen.c b/objects/screen.c index 99e3a781..fe3b425a 100644 --- a/objects/screen.c +++ b/objects/screen.c @@ -775,10 +775,12 @@ void screen_update_workarea(screen_t *screen) if (AREA_EQUAL(area, screen->workarea)) return; + area_t old_workarea = screen->workarea; screen->workarea = area; lua_State *L = globalconf_get_lua_State(); luaA_object_push(L, screen); - luaA_object_emit_signal(L, -1, "property::workarea", 0); + luaA_pusharea(L, old_workarea); + luaA_object_emit_signal(L, -2, "property::workarea", 1); lua_pop(L, 1); }