projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0441661
)
close windows with netwm messages
author
Dana Jansens
<danakj@orodu.net>
Wed, 8 Jan 2003 17:07:18 +0000
(17:07 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 8 Jan 2003 17:07:18 +0000
(17:07 +0000)
scripts/builtins.py
patch
|
blob
|
history
diff --git
a/scripts/builtins.py
b/scripts/builtins.py
index dcc6ca56031870884a687bf38a2fa802c0f8a75b..5b64c3b8bce0587ef7ac7411a717c86142faa35f 100644
(file)
--- 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"""