From 910cbe401d4fa59bdc7d1496a68338427fbcbf71 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 6 Mar 2014 18:08:21 +0100 Subject: [PATCH] client: Emit property::screen after geometry Signed-off-by: Uli Schlachter --- objects/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objects/client.c b/objects/client.c index d77606f3..777226fc 100644 --- a/objects/client.c +++ b/objects/client.c @@ -796,8 +796,6 @@ client_resize_do(client_t *c, area_t geometry, bool force_notice, bool honor_hin client_restore_enterleave_events(); - screen_client_moveto(c, new_screen, false); - luaA_object_push(globalconf.L, c); luaA_object_emit_signal(globalconf.L, -1, "property::geometry", 0); if (old_geometry.x != geometry.x) @@ -810,6 +808,8 @@ client_resize_do(client_t *c, area_t geometry, bool force_notice, bool honor_hin luaA_object_emit_signal(globalconf.L, -1, "property::height", 0); lua_pop(globalconf.L, 1); + screen_client_moveto(c, new_screen, false); + /* Update all titlebars */ for (client_titlebar_t bar = CLIENT_TITLEBAR_TOP; bar < CLIENT_TITLEBAR_COUNT; bar++) { if (c->titlebar[bar].drawable == NULL && c->titlebar[bar].size == 0)