From 08947d8220cc9eb10b15c88a614794e5a8db45ed Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 12 Feb 2014 11:53:27 +0000 Subject: [PATCH] Tiling2: Removed useless desk show hook. --- src/modules/tiling/e_mod_tiling.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c index f7fab4768..00dd1a561 100644 --- a/src/modules/tiling/e_mod_tiling.c +++ b/src/modules/tiling/e_mod_tiling.c @@ -69,11 +69,9 @@ static struct tiling_mod_main_g { char edj_path[PATH_MAX]; E_Config_DD *config_edd, *vdesk_edd; - int currently_switching_desktop; Ecore_Event_Handler *handler_client_resize, *handler_client_move, *handler_client_add, *handler_client_remove, *handler_client_iconify, *handler_client_uniconify, *handler_client_property, - *handler_desk_show, *handler_desk_before_show, *handler_desk_set, *handler_compositor_resize; E_Client_Menu_Hook *client_menu_hook; @@ -1004,9 +1002,6 @@ _remove_hook(void *data EINA_UNUSED, int type EINA_UNUSED, if (e_client_util_ignored_get(ec)) return ECORE_CALLBACK_RENEW; - if (_G.currently_switching_desktop) - return true; - if (!desk_should_tile_check(ec->desk)) return true; @@ -1080,24 +1075,6 @@ _property_hook(void *data EINA_UNUSED, int type EINA_UNUSED, return true; } -static Eina_Bool -_desk_show_hook(void *data EINA_UNUSED, int type EINA_UNUSED, - void *event EINA_UNUSED) -{ - _G.currently_switching_desktop = 0; - - return true; -} - -static Eina_Bool -_desk_before_show_hook(void *data EINA_UNUSED, int type EINA_UNUSED, - void *event EINA_UNUSED) -{ - _G.currently_switching_desktop = 1; - - return true; -} - static bool _desk_set_hook(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_Client_Desk_Set *ev) @@ -1240,9 +1217,6 @@ e_modapi_init(E_Module *m) HANDLER(_G.handler_client_uniconify, CLIENT_UNICONIFY, _uniconify_hook); HANDLER(_G.handler_client_property, CLIENT_PROPERTY, _property_hook); - HANDLER(_G.handler_desk_show, DESK_SHOW, _desk_show_hook); - HANDLER(_G.handler_desk_before_show, DESK_BEFORE_SHOW, - _desk_before_show_hook); HANDLER(_G.handler_desk_set, CLIENT_DESK_SET, _desk_set_hook); HANDLER(_G.handler_compositor_resize, COMPOSITOR_RESIZE, _compositor_resize_hook); @@ -1333,8 +1307,6 @@ e_modapi_init(E_Module *m) desk = get_current_desk(); _G.tinfo = _initialize_tinfo(desk); - _G.currently_switching_desktop = 0; - /* Add all the existing windows. */ { E_Client *ec; @@ -1433,8 +1405,6 @@ e_modapi_shutdown(E_Module *m EINA_UNUSED) FREE_HANDLER(_G.handler_client_uniconify); FREE_HANDLER(_G.handler_client_property); - FREE_HANDLER(_G.handler_desk_show); - FREE_HANDLER(_G.handler_desk_before_show); FREE_HANDLER(_G.handler_desk_set); #undef FREE_HANDLER