Fix screen.fake_add()

Commit 8a6787bd54 added screen.fake_add(). Commit 08845c7a4b made us cache a
screen's workarea in the struct screen_t. This new member needs to be
initialized to the screen's geometry when a new screen is added. Since both
these commits were developed concurrently, the workarea was not initialized in
screen.fake_add().

Fix this by calling in fake_add() the helper function added in 08845c7a4b.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-05-09 19:22:21 +02:00
parent a6d61ed39e
commit 64f3677c96
1 changed files with 2 additions and 2 deletions

View File

@ -1042,9 +1042,9 @@ luaA_screen_fake_add(lua_State *L)
s->geometry.y = y;
s->geometry.width = width;
s->geometry.height = height;
s->valid = true;
screen_added(L, s);
luaA_object_push(L, s);
luaA_object_emit_signal(L, -1, "added", 0);
return 1;
}