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 ((ObMenu
*)self
)->frame
;
26 return ((ObDock
*)self
)->frame
;
28 /* not to be used for stacking */
29 g_assert_not_reached();
32 return ((ObClient
*)self
)->frame
->window
;
34 return ((InternalWindow
*)self
)->win
;
36 g_assert_not_reached();
40 Window
window_layer(ObWindow
*self
)
44 return OB_STACKING_LAYER_INTERNAL
;
46 return config_dock_layer
;
48 /* not to be used for stacking */
49 g_assert_not_reached();
52 return ((ObClient
*)self
)->layer
;
54 return OB_STACKING_LAYER_INTERNAL
;
56 g_assert_not_reached();