add functions to set the skipTaskbar/Pager state
This commit is contained in:
parent
9e89436208
commit
2d6698683a
1 changed files with 14 additions and 0 deletions
|
@ -31,6 +31,20 @@ def state_shaded(data, add=2):
|
||||||
otk.Property_atoms().net_wm_state, data.client.window(),
|
otk.Property_atoms().net_wm_state, data.client.window(),
|
||||||
add, otk.Property_atoms().net_wm_state_shaded)
|
add, otk.Property_atoms().net_wm_state_shaded)
|
||||||
|
|
||||||
|
def state_skip_taskbar(data, add=2):
|
||||||
|
"""Toggles, adds or removes the 'skip_taskbar' state on a window."""
|
||||||
|
if not data.client: return
|
||||||
|
ob.send_client_msg(otk.display.screenInfo(data.screen).rootWindow(),
|
||||||
|
otk.Property_atoms().net_wm_state, data.client.window(),
|
||||||
|
add, otk.Property_atoms().net_wm_state_skip_taskbar)
|
||||||
|
|
||||||
|
def state_skip_pager(data, add=2):
|
||||||
|
"""Toggles, adds or removes the 'skip_pager' state on a window."""
|
||||||
|
if not data.client: return
|
||||||
|
ob.send_client_msg(otk.display.screenInfo(data.screen).rootWindow(),
|
||||||
|
otk.Property_atoms().net_wm_state, data.client.window(),
|
||||||
|
add, otk.Property_atoms().net_wm_state_skip_pager)
|
||||||
|
|
||||||
def iconify(data):
|
def iconify(data):
|
||||||
"""Iconifies the window on which the event occured"""
|
"""Iconifies the window on which the event occured"""
|
||||||
if not data.client: return
|
if not data.client: return
|
||||||
|
|
Loading…
Reference in a new issue