windows are added and created on create/destroy/reparent
[dana/dcompmgr.git] / window.c
index 3e83634..269b60d 100644 (file)
--- a/window.c
+++ b/window.c
@@ -1,6 +1,9 @@
 #include "window.h"
 #include <glib.h>
 
+static void window_show(d_window_t *w);
+static void window_hide(d_window_t *w);
+
 d_window_t*
 window_new(xcb_window_t id, struct d_screen *sc)
 {
@@ -10,6 +13,11 @@ window_new(xcb_window_t id, struct d_screen *sc)
     w->id = id;
     w->ref = 1;
     w->sc = sc;
+
+    /* default functions */
+    w->show = window_show;
+    w->hide = window_hide;
+
     return w;
 }
 
@@ -26,3 +34,13 @@ window_unref(d_window_t *w)
         g_free(w);
     }
 }
+
+static void
+window_show(d_window_t *w)
+{
+}
+
+static void
+window_hide(d_window_t *w)
+{
+}