2 #include "e_mod_main.h"
4 /***************************************************************************/
6 /* actual module specifics */
8 static E_Module *layout_module = NULL;
9 static E_Border_Hook *hook = NULL;
12 _e_module_layout_cb_hook(void *data, E_Border *bd)
14 /* FIXME: make some modification based on policy */
18 " Geometry: %ix%i+%i+%i\n"
20 , bd->client.icccm.title, bd->client.netwm.name
21 , bd->client.icccm.name, bd->client.icccm.class
22 , bd->x, bd->y, bd->w, bd->h
25 if ((bd->client.icccm.transient_for != 0) ||
26 (bd->client.netwm.type == ECORE_X_WINDOW_TYPE_DIALOG))
28 bd->client.e.state.centered = 1;
32 e_border_unmaximize(bd, E_MAXIMIZE_BOTH);
33 e_border_resize(bd, 1, 1);
35 if (bd->bordername) eina_stringshare_del(bd->bordername);
36 bd->bordername = eina_stringshare_add("borderless");
37 bd->client.icccm.base_w = 1;
38 bd->client.icccm.base_h = 1;
39 bd->client.icccm.min_w = 1;
40 bd->client.icccm.min_h = 1;
41 bd->client.icccm.max_w = 32767;
42 bd->client.icccm.max_h = 32767;
43 bd->client.icccm.min_aspect = 0.0;
44 bd->client.icccm.max_aspect = 0.0;
46 e_border_maximize(bd, E_MAXIMIZE_FILL | E_MAXIMIZE_BOTH);
50 /***************************************************************************/
52 /***************************************************************************/
56 /***************************************************************************/
58 /***************************************************************************/
61 EAPI E_Module_Api e_modapi =
68 e_modapi_init(E_Module *m)
72 hook = e_border_hook_add(E_BORDER_HOOK_EVAL_POST_FETCH,
73 _e_module_layout_cb_hook, NULL);
78 e_modapi_shutdown(E_Module *m)
82 e_border_hook_del(hook);
90 e_modapi_save(E_Module *m)