From: Dana Jansens Date: Thu, 30 Jan 2003 22:58:54 +0000 (+0000) Subject: add functions to set the skipTaskbar/Pager state X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2d6698683a3db220dc698d1c6aa1c89502b227cc;p=chaz%2Fopenbox add functions to set the skipTaskbar/Pager state --- diff --git a/scripts/callbacks.py b/scripts/callbacks.py index 4d509268..0478e079 100644 --- a/scripts/callbacks.py +++ b/scripts/callbacks.py @@ -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