From 2f80f460e443d584630daa52c648d69ebc2e38bd Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 17 Jan 2014 11:30:41 +0000 Subject: [PATCH] Tiling2: Fixed moving non-tiled windows. --- src/modules/tiling/e_mod_tiling.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c index 29364b5a0..89697333a 100644 --- a/src/modules/tiling/e_mod_tiling.c +++ b/src/modules/tiling/e_mod_tiling.c @@ -815,6 +815,26 @@ _resize_hook(void *data __UNUSED__, int type __UNUSED__, E_Event_Client *event) static Eina_Bool _move_hook(void *data __UNUSED__, int type __UNUSED__, E_Event_Client*event) { + E_Client *ec = event->ec; + if (!ec) { + return true; + } + if (!is_tilable(ec)) { + return true; + } + + if (!desk_should_tile_check(ec->desk)) + return true; + + Client_Extra *extra = eina_hash_find(_G.client_extras, &ec); + if (!extra) { + ERR("No extra for %p", ec); + return true; + } + + if (is_ignored_window(extra)) + return true; + e_client_act_move_end(event->ec, NULL); _reapply_tree();