From 8c2dfe5de45babd0fbc12b69cdfe30a54cf873a2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 27 Dec 2002 09:18:54 +0000 Subject: deal with when nothing has focus anymore --- scripts/clientmotion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3