+ Window *winlist = g_new0 (Window, 2);
+ winlist[0] = GDK_WINDOW_XWINDOW (mainwin->window);
+ winlist[1] = None;
+ return winlist;
+}
+
+
+void
+test_set_wm_dock ()
+{
+ Atom atom_type[1], atom_window_type;
+
+ gtk_widget_hide (mainwin);
+
+ gdk_error_trap_push ();
+ atom_window_type = gdk_x11_get_xatom_by_name ("_NET_WM_WINDOW_TYPE");
+
+ atom_type[0] = gdk_x11_get_xatom_by_name ("_NET_WM_WINDOW_TYPE_DOCK");
+
+ XChangeProperty (GDK_WINDOW_XDISPLAY (mainwin->window),
+ GDK_WINDOW_XWINDOW (mainwin->window),
+ atom_window_type,
+ XA_ATOM, 32, PropModeReplace,
+ (guchar *) &atom_type, 1);
+ gdk_error_trap_pop ();
+
+ gtk_widget_show (mainwin);
+
+}
+
+static void
+test_post_window ()
+{
+ mainwin = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+
+ gtk_window_set_screen (GTK_WINDOW (mainwin), gdk_screen_get_default ());
+
+ /* gtk_window_set_keep_above (GTK_WINDOW (mainwin), true); optional */
+ /* test_set_wm_dock (); optional */
+
+ gtk_widget_show_all (mainwin);