summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-27 09:18:54 +0000
committerDana Jansens <danakj@orodu.net>2002-12-27 09:18:54 +0000
commit8c2dfe5de45babd0fbc12b69cdfe30a54cf873a2 (patch)
tree602fb4a3723afa0b2f3a7fda515e36991ee7870f /scripts
parent30e4651787ca6f7161109591c229fcaf76cb901e (diff)
deal with when nothing has focus anymore
Diffstat (limited to 'scripts')
-rw-r--r--scripts/clientmotion.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/clientmotion.py b/scripts/clientmotion.py
index a8f4c306..60de370b 100644
--- a/scripts/clientmotion.py
+++ b/scripts/clientmotion.py
@@ -26,7 +26,9 @@ def def_motion_release(action, win, type, modifiers, button, xroot, yroot,
global posqueue
for i in posqueue:
if i[0] == button:
- delete_Rect(i[3])
+ client = Openbox_findClient(openbox, win)
+ if client:
+ delete_Rect(i[3])
posqueue.remove(i)
break