add functions to set the skipTaskbar/Pager state

This commit is contained in:
Dana Jansens 2003-01-30 22:58:54 +00:00
parent 9e89436208
commit 2d6698683a

View file

@ -31,6 +31,20 @@ def state_shaded(data, add=2):
otk.Property_atoms().net_wm_state, data.client.window(),
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):
"""Iconifies the window on which the event occured"""
if not data.client: return