Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from gtk.gdk import *
- for id in get_default_root_window().property_get('_NET_CLIENT_LIST')[2]:
- w = window_foreign_new(id)
- state = w.property_get("_NET_WM_STATE")[2]
- maximized = '_NET_WM_STATE_MAXIMIZED_HORZ' in state and '_NET_WM_STATE_MAXIMIZED_VERT' in state
- if maximized: w.unmaximize()
- w.set_decorations(0)
- window_process_all_updates()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement