Set zavai to not appear in pagers and taskbars
[gregoa/zavai.git] / src / app_wm.vala
index 4a559178a4a4bf9c82415b92e353d9adabba835c..2100b0d32bb92a41d78044a6906fbadbf134e399 100644 (file)
@@ -121,8 +121,22 @@ public class CloseOrBack : Gtk.StatusIcon
        }
 }
 
+public class WindowList : Applet
+{
+       Wnck.Tasklist selector;
+
+       public WindowList(string label)
+       {
+               _label = label;
+               selector = new Wnck.Tasklist(Wnck.Screen.get_default());
+               pack_start(selector, true, true, 0);
+       }
+}
+
+
 RaiseIcon raise_icon;
 CloseOrBack close_or_back;
+WindowList window_list;
 
 public void init()
 {
@@ -131,6 +145,10 @@ public void init()
 
        close_or_back = new CloseOrBack();
        close_or_back.set_visible(true);
+
+       window_list = new WindowList("Current apps");
+       zavai.registry.register_applet("wm.list", window_list);
+       zavai.registry.getmenu("menu.main").add_applet("wm.list");
 }
 
 }