]> Dogcows Code - chaz/openbox/commitdiff
close windows with netwm messages
authorDana Jansens <danakj@orodu.net>
Wed, 8 Jan 2003 17:07:18 +0000 (17:07 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 8 Jan 2003 17:07:18 +0000 (17:07 +0000)
scripts/builtins.py

index dcc6ca56031870884a687bf38a2fa802c0f8a75b..5b64c3b8bce0587ef7ac7411a717c86142faa35f 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)
 
 def focus(data):
     """Focuses the window on which the event occured"""
This page took 0.023706 seconds and 4 git commands to generate.