summaryrefslogtreecommitdiff
path: root/scripts/clientmotion.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/clientmotion.py')
-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