Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main (string [] args)
- {
- Gtk.init (ref args);
- var screen = Wnck.Screen.get_default ();
- screen.force_update ();
- var workspace = screen.get_active_workspace ();
- foreach (var window in screen.get_windows ())
- if (window.get_workspace () == workspace &&
- (window.get_window_type () == Wnck.WindowType.NORMAL ||
- window.get_window_type () == Wnck.WindowType.DIALOG))
- window.minimize ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement