Advertisement
Guest User

Untitled

a guest
Feb 8th, 2018
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. #!/usr/bin/env python
  2. from gtk.gdk import *
  3. for id in get_default_root_window().property_get('_NET_CLIENT_LIST')[2]:
  4.     w = window_foreign_new(id)
  5.     state = w.property_get("_NET_WM_STATE")[2]
  6.     maximized = '_NET_WM_STATE_MAXIMIZED_HORZ' in state and '_NET_WM_STATE_MAXIMIZED_VERT' in state
  7.     if maximized: w.unmaximize()
  8.     w.set_decorations(0)
  9. window_process_all_updates()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement