8 GHashTable *window_map;
12 window_map = g_hash_table_new(g_int_hash, g_int_equal);
15 void window_shutdown()
17 g_hash_table_destroy(window_map);
20 Window window_top(ObWindow *self)
24 return ((Menu*)self)->frame;
26 return ((Dock*)self)->frame;
28 /* not to be used for stacking */
29 g_assert_not_reached();
32 return ((Client*)self)->frame->window;
34 return ((InternalWindow*)self)->win;
36 g_assert_not_reached();
40 Window window_layer(ObWindow *self)
44 return Layer_Internal;
46 return config_dock_layer;
48 /* not to be used for stacking */
49 g_assert_not_reached();
52 return ((Client*)self)->layer;
54 return Layer_Internal;
56 g_assert_not_reached();