]> Dogcows Code - chaz/openbox/commitdiff
add functions to set the skipTaskbar/Pager state
authorDana Jansens <danakj@orodu.net>
Thu, 30 Jan 2003 22:58:54 +0000 (22:58 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 30 Jan 2003 22:58:54 +0000 (22:58 +0000)
scripts/callbacks.py

index 4d5092680d3cc2baa98395f7ecc5d483c014c6fc..0478e079a8954e0d024e42c0ec08612f4453c0ff 100644 (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
This page took 0.025435 seconds and 4 git commands to generate.