]> Dogcows Code - chaz/openbox/blobdiff - scripts/builtins.py
pass the right num of shit to the client msg
[chaz/openbox] / scripts / builtins.py
index dcc6ca56031870884a687bf38a2fa802c0f8a75b..027ccabb0d4664ae02fb42bf8cb400f51c06d1e9 100644 (file)
@@ -38,7 +38,10 @@ def state_shaded(data, add=2):
 def close(data):
     """Closes the window on which the event occured"""
     client = Openbox_findClient(openbox, data.window())
-    if client: OBClient_close(client)
+    if not client: return
+    root = ScreenInfo_rootWindow(OBDisplay_screenInfo(data.screen()))
+    window = OBClient_window(client)
+    send_client_msg(root, OBProperty_net_close_window, window, 0)
 
 def focus(data):
     """Focuses the window on which the event occured"""
This page took 0.019117 seconds and 4 git commands to generate.