8 GHashTable *window_map;
10 void window_startup(gboolean reconfig)
14 window_map = g_hash_table_new(g_int_hash, g_int_equal);
17 void window_shutdown(gboolean reconfig)
21 g_hash_table_destroy(window_map);
24 Window window_top(ObWindow *self)
28 return ((ObMenuFrame*)self)->window;
30 return ((ObDock*)self)->frame;
32 /* not to be used for stacking */
33 g_assert_not_reached();
36 return ((ObClient*)self)->frame->window;
38 return ((InternalWindow*)self)->win;
40 g_assert_not_reached();
44 Window window_layer(ObWindow *self)
48 return OB_STACKING_LAYER_INTERNAL;
50 return config_dock_layer;
52 /* not to be used for stacking */
53 g_assert_not_reached();
56 return ((ObClient*)self)->layer;
58 return OB_STACKING_LAYER_INTERNAL;
60 g_assert_not_reached();