add support for shaped windows, and the circulatenotify event
[dana/dcompmgr.git] / screen.c
index e02e4a6..8b6513f 100644 (file)
--- a/screen.c
+++ b/screen.c
@@ -352,6 +352,19 @@ screen_stacking_move_above(d_screen_t *sc, struct d_window *w,
     list_move_before(sc->stacking, wit, ait);
 }
 
+void screen_stacking_move_to_top(d_screen_t *sc, struct d_window *w)
+{
+    d_list_it_t *wit = list_find(sc->stacking, w);
+    d_list_it_t *ait = list_top(sc->stacking);
+    list_move_before(sc->stacking, wit, ait);
+}
+
+void screen_stacking_move_to_bottom(d_screen_t *sc, struct d_window *w)
+{
+    d_list_it_t *wit = list_find(sc->stacking, w);
+    list_move_before(sc->stacking, wit, NULL);
+}
+
 static void
 screen_set_next_repaint(d_screen_t *sc)
 {
@@ -370,6 +383,7 @@ screen_setup_default_functions(d_screen_t *sc)
     sc->window_become_zombie = window_become_zombie;
     sc->window_move = window_move;
     sc->window_resize = window_resize;
+    sc->window_reshape = window_reshape;
     sc->screen_root_pixmap_changed = screen_update_root_pixmap;
 }