From 8db3dc33e8f66cfccfb2ebd98708cb7caaf50c24 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 8 Jan 2003 17:07:18 +0000 Subject: [PATCH] close windows with netwm messages --- scripts/builtins.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/builtins.py b/scripts/builtins.py index dcc6ca56..5b64c3b8 100644 --- a/scripts/builtins.py +++ b/scripts/builtins.py @@ -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""" -- 2.39.2