BrinkerVII icon

undecorate

BrinkerVII | PRO | 05/17/19 01:02:27 AM UTC | 0 ⭐ | 279 👁️ | Never ⏰ | []
Python |

450 B

|

None

|

0 👍

/

0 👎

#! /usr/bin/python2
from gtk.gdk import *
 
w=window_foreign_new((get_default_root_window().property_get("_NET_ACTIVE_WINDOW")[2][0]))
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()
if w.get_decorations() == 0 :
    w.set_decorations(DECOR_ALL)
else:
    w.set_decorations(0)
 
if maximized: w.maximize()
window_process_all_updates()

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎