tag_view: Update screen workarea

This partially fixes test-struts.lua. The test now fails at some later
part.

Fixes: https://github.com/awesomeWM/awesome/issues/1335
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-12-31 15:29:28 +01:00
parent c65cf9d3d3
commit feb4fb0fbc
1 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,7 @@
*/
#include "tag.h"
#include "screen.h"
#include "banning.h"
#include "client.h"
#include "ewmh.h"
@ -277,6 +278,8 @@ tag_view(lua_State *L, int udx, bool view)
{
tag->selected = view;
banning_need_update();
foreach(screen, globalconf.screens)
screen_update_workarea(*screen);
luaA_object_emit_signal(L, udx, "property::selected", 0);
}